diff options
-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; |