Author: Armin Rigo <[email protected]>
Branch: kill-someobject
Changeset: r58073:119b9df1047e
Date: 2012-10-12 18:33 +0200
http://bitbucket.org/pypy/pypy/changeset/119b9df1047e/

Log:    Change the default to make crashes a little bit less obscure
        (OpErrFmt asserts that w_type is not None)

diff --git a/pypy/objspace/flow/objspace.py b/pypy/objspace/flow/objspace.py
--- a/pypy/objspace/flow/objspace.py
+++ b/pypy/objspace/flow/objspace.py
@@ -58,8 +58,8 @@
 
     # the following exceptions should not show up
     # during flow graph construction
-    w_NameError = None
-    w_UnboundLocalError = None
+    w_NameError = 'NameError'
+    w_UnboundLocalError = 'UnboundLocalError'
 
     specialcases = SPECIAL_CASES
     # objects which should keep their SomeObjectness
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to