[pypy-commit] pypy py3k: bah, confusion between applevel and interplevel None

antocuni noreply at buildbot.pypy.org
Wed Feb 15 15:23:31 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52506:f3f032ce4cb2
Date: 2012-02-15 15:23 +0100
http://bitbucket.org/pypy/pypy/changeset/f3f032ce4cb2/

Log:	bah, confusion between applevel and interplevel None

diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -496,7 +496,7 @@
         operror = OperationError(w_type, w_value, w_cause=w_cause)
         operror.normalize_exception(space)
         tb = space.getattr(w_value, space.wrap('__traceback__'))
-        if tb is not None:
+        if not space.is_w(tb, space.w_None):
             operror.set_traceback(tb)
         raise operror
 


More information about the pypy-commit mailing list