summaryrefslogtreecommitdiffstats
path: root/Modules/_pickle.c
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2013-11-24 11:07:35 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2013-11-24 11:07:35 (GMT)
commitfc91285c93ea1e1c152b73fd0a5a703bf564d596 (patch)
tree79ee86d5b25baf93d11f88b16521ad6392eff0f6 /Modules/_pickle.c
parent52968676f16a83a069a02b42a71a5a42c5ec76f6 (diff)
downloadcpython-fc91285c93ea1e1c152b73fd0a5a703bf564d596.zip
cpython-fc91285c93ea1e1c152b73fd0a5a703bf564d596.tar.gz
cpython-fc91285c93ea1e1c152b73fd0a5a703bf564d596.tar.bz2
Remove code path in cpickle that does not exist in pickle.
Diffstat (limited to 'Modules/_pickle.c')
-rw-r--r--Modules/_pickle.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index 3187555..c8ef2ea 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. */