[Python-checkins] cpython (3.4): Removed debugging output of exception raised by __reduce__ method.

serhiy.storchaka python-checkins at python.org
Mon Nov 30 17:41:10 EST 2015


https://hg.python.org/cpython/rev/65a23d24fd12
changeset:   99400:65a23d24fd12
branch:      3.4
parent:      99396:67b341701f5e
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Tue Dec 01 00:39:25 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
@@ -1388,13 +1388,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


More information about the Python-checkins mailing list