Commits

Armin Rigo committed 119b9df

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

Comments (0)

Files changed (1)

pypy/objspace/flow/objspace.py

 
     # 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