cpython (merge 3.4 -> 3.5): Removed debugging output of exception raised by __reduce__ method.
https://hg.python.org/cpython/rev/ef85dc8c0ba0 changeset: 99401:ef85dc8c0ba0 branch: 3.5 parent: 99397:f0469025df14 parent: 99400:65a23d24fd12 user: Serhiy Storchaka <storchaka@gmail.com> date: Tue Dec 01 00:39:45 2015 +0200 summary: Removed debugging output of exception raised by __reduce__ method. files: Lib/pickle.py | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/Lib/pickle.py b/Lib/pickle.py --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -1391,13 +1391,7 @@ stack = self.stack args = stack.pop() func = stack[-1] - try: - value = func(*args) - except: - print(sys.exc_info()) - print(func, args) - raise - stack[-1] = value + stack[-1] = func(*args) dispatch[REDUCE[0]] = load_reduce def load_pop(self): -- Repository URL: https://hg.python.org/cpython
participants (1)
-
serhiy.storchaka