diff options
| author | Christian Heimes <christian@cheimes.de> | 2013-11-23 21:05:31 +0100 |
|---|---|---|
| committer | Christian Heimes <christian@cheimes.de> | 2013-11-23 21:05:31 +0100 |
| commit | 74d8d63b183f7bb90da68f45e34259af439922de (patch) | |
| tree | 00327c84079c99f8e03ac1e25b764676a1537fc2 | |
| parent | b3d3ee4fef6d1beb547671d12c514c86657b9223 (diff) | |
| download | cpython-git-74d8d63b183f7bb90da68f45e34259af439922de.tar.gz | |
Issue #17810: return -1 on error
| -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 b63a7d92c5..6de94ec1ba 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; |
