From: Alexandre Vassalotti Date: Sun, 24 Nov 2013 11:07:35 +0000 (-0800) Subject: Remove code path in cpickle that does not exist in pickle. X-Git-Tag: v3.4.0b1~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc91285c93ea1e1c152b73fd0a5a703bf564d596;p=thirdparty%2FPython%2Fcpython.git Remove code path in cpickle that does not exist in pickle. --- diff --git a/Modules/_pickle.c b/Modules/_pickle.c index 31875555e267..c8ef2ea86e25 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -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. */