From a8d83f5fc99402c8d248242a1c156dabf5aa8168 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 1 Dec 2015 00:39:25 +0200 Subject: [PATCH] Removed debugging output of exception raised by __reduce__ method. --- Lib/pickle.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Lib/pickle.py b/Lib/pickle.py index d05316e93c6..3b139844c4f 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):