[Python-checkins] r68756 - python/branches/io-c/Modules/_iobase.c

antoine.pitrou python-checkins at python.org
Mon Jan 19 01:10:16 CET 2009


Author: antoine.pitrou
Date: Mon Jan 19 01:10:16 2009
New Revision: 68756

Log:
Remove irrelevant comment.



Modified:
   python/branches/io-c/Modules/_iobase.c

Modified: python/branches/io-c/Modules/_iobase.c
==============================================================================
--- python/branches/io-c/Modules/_iobase.c	(original)
+++ python/branches/io-c/Modules/_iobase.c	Mon Jan 19 01:10:16 2009
@@ -202,12 +202,10 @@
     if (closed == 0) {
         res = PyObject_CallMethodObjArgs((PyObject *) self, _PyIO_str_close,
                                           NULL);
-        if (res == NULL) {
-            /* XXX dump exception on terminal?
-               But IOBase.__del__ prefers to remain silent... */
+        if (res == NULL)
             PyErr_Clear();
-        }
-        Py_XDECREF(res);
+        else
+            Py_DECREF(res);
     }
     PyErr_Restore(tp, v, tb);
     if (--((PyObject *) self)->ob_refcnt != 0)


More information about the Python-checkins mailing list