[pypy-svn] r76870 - pypy/branch/better-map-instances/pypy/module/cpyext

arigo at codespeak.net arigo at codespeak.net
Sun Sep 5 13:04:18 CEST 2010


Author: arigo
Date: Sun Sep  5 13:04:16 2010
New Revision: 76870

Modified:
   pypy/branch/better-map-instances/pypy/module/cpyext/classobject.py
Log:
Translation fix.


Modified: pypy/branch/better-map-instances/pypy/module/cpyext/classobject.py
==============================================================================
--- pypy/branch/better-map-instances/pypy/module/cpyext/classobject.py	(original)
+++ pypy/branch/better-map-instances/pypy/module/cpyext/classobject.py	Sun Sep  5 13:04:16 2010
@@ -15,7 +15,7 @@
     class is the class of new object.  The dict parameter will be used as the
     object's __dict__; if NULL, a new dictionary will be created for the
     instance."""
-    if not PyClass_Check(space, w_class):
+    if not isinstance(w_class, W_ClassObject):
         return PyErr_BadInternalCall(space)
     w_result = w_class.instantiate(space)
     if w_dict is not None:



More information about the Pypy-commit mailing list