Commit d38a7eee authored by Alexandre Vassalotti's avatar Alexandre Vassalotti

Remove code path in cpickle that does not exist in pickle.

parent 0a2a8dc2
...@@ -3584,14 +3584,8 @@ save(PicklerObject *self, PyObject *obj, int pers_save) ...@@ -3584,14 +3584,8 @@ save(PicklerObject *self, PyObject *obj, int pers_save)
} }
else if (type == &PyFunction_Type) { else if (type == &PyFunction_Type) {
status = save_global(self, obj, NULL); 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. */ /* XXX: This part needs some unit tests. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment