Author: Ronny Pfannschmidt <[email protected]>
Branch: pytest
Changeset: r60087:812281a24135
Date: 2013-01-14 01:19 +0100
http://bitbucket.org/pypy/pypy/changeset/812281a24135/

Log:    use pylib reraise for py3k compat

diff --git a/pypy/tool/pytest/inttest.py b/pypy/tool/pytest/inttest.py
--- a/pypy/tool/pytest/inttest.py
+++ b/pypy/tool/pytest/inttest.py
@@ -14,7 +14,7 @@
     try:
         if e.w_type.name == 'KeyboardInterrupt':
             tb = sys.exc_info()[2]
-            raise KeyboardInterrupt, KeyboardInterrupt(), tb
+            py.builtin._reraise(KeyboardInterrupt, KeyboardInterrupt(), tb)
     except AttributeError:
         pass
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to