diff options
author | Christian Heimes <christian@cheimes.de> | 2013-11-23 20:05:31 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-11-23 20:05:31 (GMT) |
commit | 74d8d63b183f7bb90da68f45e34259af439922de (patch) | |
tree | 00327c84079c99f8e03ac1e25b764676a1537fc2 /Modules/_pickle.c | |
parent | b3d3ee4fef6d1beb547671d12c514c86657b9223 (diff) | |
download | cpython-74d8d63b183f7bb90da68f45e34259af439922de.zip cpython-74d8d63b183f7bb90da68f45e34259af439922de.tar.gz cpython-74d8d63b183f7bb90da68f45e34259af439922de.tar.bz2 |
Issue #17810: return -1 on error
Diffstat (limited to 'Modules/_pickle.c')
-rw-r--r-- | Modules/_pickle.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ save_frozenset(PicklerObject *self, PyObject *obj) iter = PyObject_GetIter(obj); if (iter == NULL) { - return NULL; + return -1; } for (;;) { PyObject *item; |