[Python-checkins] CVS: python/dist/src/Objects fileobject.c,2.137,2.138

Tim Peters tim_one@users.sourceforge.net
Fri, 09 Nov 2001 11:23:49 -0800


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv15094/python/Objects

Modified Files:
	fileobject.c 
Log Message:
open_the_file():  this routine has a borrowed reference to the file
object, so the "Metroworks only" section should not decref it in case
of error (the caller is responsible for decref'ing in case of error --
and does).


Index: fileobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/fileobject.c,v
retrieving revision 2.137
retrieving revision 2.138
diff -C2 -d -r2.137 -r2.138
*** fileobject.c	2001/11/09 16:17:24	2.137
--- fileobject.c	2001/11/09 19:23:47	2.138
***************
*** 124,128 ****
  		if (errno == 0) {
  			PyErr_SetString(PyExc_IOError, "Cannot open file");
- 			Py_DECREF(f);
  			return NULL;
  		}
--- 124,127 ----