Author: Antonio Cuni <[email protected]>
Branch: invalidate-virtualrefs
Changeset: r44521:4c3010e5862f
Date: 2011-05-26 18:08 +0200
http://bitbucket.org/pypy/pypy/changeset/4c3010e5862f/

Log:    rpython fixes

diff --git a/pypy/interpreter/error.py b/pypy/interpreter/error.py
--- a/pypy/interpreter/error.py
+++ b/pypy/interpreter/error.py
@@ -17,7 +17,6 @@
     PyTraceback objects making the application-level traceback.
     """
 
-    _attrs_ = ['w_type', '_w_value', '_application_traceback']
     _w_value = None
     _application_traceback = None
 
@@ -260,9 +259,12 @@
         escaping by executioncontext.leave() being called with
         got_exception=True.
         """
-        if self._application_traceback is not None:
-            self._application_traceback.frame.mark_as_escaped()
-        return self._application_traceback
+        from pypy.interpreter.pytraceback import PyTraceback
+        tb = self._application_traceback
+        if tb is not None:
+            assert isinstance(tb, PyTraceback)
+            tb.frame.mark_as_escaped()
+        return tb
 
     def set_traceback(self, traceback):
         """Set the current traceback.  It should either be a traceback
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to