From: Serhiy Storchaka Date: Mon, 30 Nov 2015 22:39:25 +0000 (+0200) Subject: Removed debugging output of exception raised by __reduce__ method. X-Git-Tag: v3.4.4rc1~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8d83f5fc99402c8d248242a1c156dabf5aa8168;p=python Removed debugging output of exception raised by __reduce__ method. --- diff --git a/Lib/pickle.py b/Lib/pickle.py index d05316e93c..3b139844c4 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -1388,13 +1388,7 @@ class _Unpickler: 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):