[pypy-svn] r77139 - pypy/branch/rsocket-improvements/pypy/interpreter

fijal at codespeak.net fijal at codespeak.net
Fri Sep 17 15:06:27 CEST 2010


Author: fijal
Date: Fri Sep 17 15:06:25 2010
New Revision: 77139

Modified:
   pypy/branch/rsocket-improvements/pypy/interpreter/baseobjspace.py
Log:
This should get rid of the last undeletable assertion


Modified: pypy/branch/rsocket-improvements/pypy/interpreter/baseobjspace.py
==============================================================================
--- pypy/branch/rsocket-improvements/pypy/interpreter/baseobjspace.py	(original)
+++ pypy/branch/rsocket-improvements/pypy/interpreter/baseobjspace.py	Fri Sep 17 15:06:25 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