Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r59184:59a08db54eff
Date: 2012-12-01 11:52 -0800
http://bitbucket.org/pypy/pypy/changeset/59a08db54eff/

Log:    woops, 83685d0 broke raising, fix

diff --git a/pypy/module/atexit/app_atexit.py b/pypy/module/atexit/app_atexit.py
--- a/pypy/module/atexit/app_atexit.py
+++ b/pypy/module/atexit/app_atexit.py
@@ -31,7 +31,9 @@
                 # obscure: we can't use sys.exc_info() here because this
                 # function is an appleveldef which marks its frame as
                 # hidden
-                traceback.print_exception(type(e), e, e.__traceback__)
+                last_exc = e
+                last_tb = e.__traceback__
+                traceback.print_exception(type(last_exc), last_exc, last_tb)
 
     clear()
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to