[Python-checkins] python/dist/src/Python pythonrun.c,2.196,2.197
mwh at users.sourceforge.net
mwh at users.sourceforge.net
Mon Aug 11 06:20:26 EDT 2003
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv14168/Python
Modified Files:
pythonrun.c
Log Message:
Fix refcounting and cut & paste error (?) in last checkin.
This should go onto release23-maint, too.
Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.196
retrieving revision 2.197
diff -C2 -d -r2.196 -r2.197
*** pythonrun.c 9 Aug 2003 09:47:11 -0000 2.196
--- pythonrun.c 11 Aug 2003 12:20:24 -0000 2.197
***************
*** 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