[Python-checkins] cpython: Issue #17810: return -1 on error

christian.heimes python-checkins at python.org
Sat Nov 23 21:05:53 CET 2013


http://hg.python.org/cpython/rev/c54becd69805
changeset:   87445:c54becd69805
user:        Christian Heimes <christian at cheimes.de>
date:        Sat Nov 23 21:05:31 2013 +0100
summary:
  Issue #17810: return -1 on error

files:
  Modules/_pickle.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/_pickle.c b/Modules/_pickle.c
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -2941,7 +2941,7 @@
 
     iter = PyObject_GetIter(obj);
     if (iter == NULL) {
-        return NULL;
+        return -1;
     }
     for (;;) {
         PyObject *item;

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list