commit | fc91285c93ea1e1c152b73fd0a5a703bf564d596 | [log] [tgz] |
---|---|---|
author | Alexandre Vassalotti <alexandre@peadrop.com> | Sun Nov 24 03:07:35 2013 -0800 |
committer | Alexandre Vassalotti <alexandre@peadrop.com> | Sun Nov 24 03:07:35 2013 -0800 |
tree | 79ee86d5b25baf93d11f88b16521ad6392eff0f6 | |
parent | 52968676f16a83a069a02b42a71a5a42c5ec76f6 [diff] [blame] |
Remove code path in cpickle that does not exist in pickle.
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 @@ } 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. */