Author: Ronan Lamy <[email protected]>
Branch: py3k-qualname
Changeset: r72558:0bbca39a93bb
Date: 2014-07-27 12:18 +0200
http://bitbucket.org/pypy/pypy/changeset/0bbca39a93bb/

Log:    A branch to implement the __qualname__ attribute

diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -128,13 +128,7 @@
         block = self.unrollstack(SApplicationException.kind)
         if block is None:
             # no handler found for the OperationError
-            if we_are_translated():
-                raise operr
-            else:
-                # try to preserve the CPython-level traceback
-                import sys
-                tb = sys.exc_info()[2]
-                raise OperationError, operr, tb
+            raise operr
         else:
             unroller = SApplicationException(operr)
             next_instr = block.handle(self, unroller)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to