[pypy-svn] r77149 - pypy/trunk/pypy/interpreter

fijal at codespeak.net fijal at codespeak.net
Fri Sep 17 15:43:38 CEST 2010


Author: fijal
Date: Fri Sep 17 15:43:36 2010
New Revision: 77149

Modified:
   pypy/trunk/pypy/interpreter/baseobjspace.py
Log:
Kill useless assert


Modified: pypy/trunk/pypy/interpreter/baseobjspace.py
==============================================================================
--- pypy/trunk/pypy/interpreter/baseobjspace.py	(original)
+++ pypy/trunk/pypy/interpreter/baseobjspace.py	Fri Sep 17 15:43:36 2010
@@ -71,7 +71,8 @@
                              space.wrap("__class__ assignment: only for heap types"))
 
     def user_setup(self, space, w_subtype):
-        assert False, "only for interp-level user subclasses from typedef.py"
+        raise NotImplementedError("only for interp-level user subclasses "
+                                  "from typedef.py")
 
     def getname(self, space, default):
         try:



More information about the Pypy-commit mailing list