cpython (merge 3.5 -> default): Removed debugging output of exception raised by __reduce__ method.
https://hg.python.org/cpython/rev/ac0f7ed0e94d changeset: 99402:ac0f7ed0e94d parent: 99398:0a36c8fe4703 parent: 99401:ef85dc8c0ba0 user: Serhiy Storchaka <storchaka@gmail.com> date: Tue Dec 01 00:40:50 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 @@ -1398,13 +1398,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