commit | 74d8d63b183f7bb90da68f45e34259af439922de | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Sat Nov 23 21:05:31 2013 +0100 |
committer | Christian Heimes <christian@cheimes.de> | Sat Nov 23 21:05:31 2013 +0100 |
tree | 00327c84079c99f8e03ac1e25b764676a1537fc2 | |
parent | b3d3ee4fef6d1beb547671d12c514c86657b9223 [diff] [blame] |
Issue #17810: return -1 on error
diff --git a/Modules/_pickle.c b/Modules/_pickle.c index b63a7d9..6de94ec 100644 --- 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;