]> granicus.if.org Git - python/commitdiff
Removed debugging output of exception raised by __reduce__ method.
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 30 Nov 2015 22:39:25 +0000 (00:39 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 30 Nov 2015 22:39:25 +0000 (00:39 +0200)
Lib/pickle.py

index d05316e93c66fbee09e1cffca88a2ed0f373410a..3b139844c4f886901825189f58e043220a25c602 100644 (file)
@@ -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):