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

This commit is contained in:
Alexandre Vassalotti 2013-11-24 03:07:35 -08:00
parent 52968676f1
commit fc91285c93
1 changed files with 1 additions and 7 deletions

View File

@ -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. */