[pypy-commit] pypy py3.3: Make the diff from the stdlib smaller.
marky1991
pypy.commits at gmail.com
Tue Jan 12 22:24:30 EST 2016
Author: marky1991 <marky1991 at gmail.com>
Branch: py3.3
Changeset: r81720:f1050dffd9d5
Date: 2016-01-10 21:09 -0500
http://bitbucket.org/pypy/pypy/changeset/f1050dffd9d5/
Log: Make the diff from the stdlib smaller.
diff --git a/lib-python/3/code.py b/lib-python/3/code.py
--- a/lib-python/3/code.py
+++ b/lib-python/3/code.py
@@ -105,9 +105,10 @@
The output is written by self.write(), below.
"""
- type, value, sys.last_traceback = sys.exc_info()
+ type, value, tb = sys.exc_info()
sys.last_type = type
sys.last_value = value
+ sys.last_traceback = tb
if filename and type is SyntaxError:
# Work hard to stuff the correct filename in the exception
try:
@@ -125,7 +126,7 @@
else:
# If someone has set sys.excepthook, we let that take precedence
# over self.write
- sys.excepthook(type, value, self.last_traceback)
+ sys.excepthook(type, value, tb)
def showtraceback(self):
"""Display the exception that just occurred.
More information about the pypy-commit
mailing list