summaryrefslogtreecommitdiffstats
path: root/Modules/_pickle.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_pickle.c')
-rw-r--r--Modules/_pickle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index f837264..a14a258 100644
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -5430,9 +5430,6 @@ load(UnpicklerObject *self)
break; /* and we are done! */
}
- if (_Unpickler_SkipConsumed(self) < 0)
- return NULL;
-
/* XXX: It is not clear what this is actually for. */
if ((err = PyErr_Occurred())) {
if (err == PyExc_EOFError) {
@@ -5441,6 +5438,9 @@ load(UnpicklerObject *self)
return NULL;
}
+ if (_Unpickler_SkipConsumed(self) < 0)
+ return NULL;
+
PDATA_POP(self->stack, value);
return value;
}