Remove code path in cpickle that does not exist in pickle.
This commit is contained in:
parent
52968676f1
commit
fc91285c93
|
@ -3584,13 +3584,7 @@ save(PicklerObject *self, PyObject *obj, int pers_save)
|
|||
}
|
||||
else if (type == &PyFunction_Type) {
|
||||
status = save_global(self, obj, NULL);
|
||||
if (status < 0 && PyErr_ExceptionMatches(PickleError)) {
|
||||
/* fall back to reduce */
|
||||
PyErr_Clear();
|
||||
}
|
||||
else {
|
||||
goto done;
|
||||
}
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* XXX: This part needs some unit tests. */
|
||||
|
|
Loading…
Reference in New Issue