[pypy-svn] rev 702 - pypy/trunk/src/pypy/objspace/std

mwh at codespeak.net mwh at codespeak.net
Thu May 29 17:40:26 CEST 2003


Author: mwh
Date: Thu May 29 17:40:26 2003
New Revision: 702

Modified:
   pypy/trunk/src/pypy/objspace/std/boolobject.py
Log:
string exceptions are eeviil...


Modified: pypy/trunk/src/pypy/objspace/std/boolobject.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/std/boolobject.py	(original)
+++ pypy/trunk/src/pypy/objspace/std/boolobject.py	Thu May 29 17:40:26 2003
@@ -17,7 +17,7 @@
                 w_self.boolval == w_other.boolval)
 
     def __nonzero__(self):
-        raise "you cannot do that, you must use space.is_true()"
+        raise Exception, "you cannot do that, you must use space.is_true()"
 
 
 def bool_is_true(space, w_bool):


More information about the Pypy-commit mailing list