[Python-checkins] python/dist/src/Python pythonrun.c, 2.195.6.1, 2.195.6.2

mwh at users.sourceforge.net mwh at users.sourceforge.net
Mon Aug 11 06:21:42 EDT 2003


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv14520

Modified Files:
      Tag: release23-maint
	pythonrun.c 
Log Message:
Repeat my refcount & cut&paste fixes on the branch.


Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.195.6.1
retrieving revision 2.195.6.2
diff -C2 -d -r2.195.6.1 -r2.195.6.2
*** pythonrun.c	9 Aug 2003 09:48:29 -0000	2.195.6.1
--- pythonrun.c	11 Aug 2003 12:21:40 -0000	2.195.6.2
***************
*** 253,257 ****
  
  	if (codeset) {
! 		sys_stream = PySys_GetObject("stdout");
  		sys_isatty = PyObject_CallMethod(sys_stream, "isatty", "");
  		if (!sys_isatty)
--- 253,257 ----
  
  	if (codeset) {
! 		sys_stream = PySys_GetObject("stdin");
  		sys_isatty = PyObject_CallMethod(sys_stream, "isatty", "");
  		if (!sys_isatty)
***************
*** 261,265 ****
  				Py_FatalError("Cannot set codeset of stdin");
  		}
- 		Py_XDECREF(sys_stream);
  		Py_XDECREF(sys_isatty);
  
--- 261,264 ----
***************
*** 272,276 ****
  				Py_FatalError("Cannot set codeset of stdout");
  		}
- 		Py_XDECREF(sys_stream);
  		Py_XDECREF(sys_isatty);
  
--- 271,274 ----





More information about the Python-checkins mailing list