[pypy-svn] r73284 - pypy/branch/cpython-extension/pypy/interpreter

afa at codespeak.net afa at codespeak.net
Fri Apr 2 09:51:15 CEST 2010


Author: afa
Date: Fri Apr  2 09:51:09 2010
New Revision: 73284

Modified:
   pypy/branch/cpython-extension/pypy/interpreter/typedef.py
Log:
Restore assertion


Modified: pypy/branch/cpython-extension/pypy/interpreter/typedef.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/interpreter/typedef.py	(original)
+++ pypy/branch/cpython-extension/pypy/interpreter/typedef.py	Fri Apr  2 09:51:09 2010
@@ -369,7 +369,7 @@
 
 @specialize.arg(0)
 def make_objclass_getter(tag, func, cls):
-    if func and not cls and hasattr(func, 'im_func'):
+    if func and hasattr(func, 'im_func'):
         assert not cls or cls is func.im_class
         cls = func.im_class
     return _make_objclass_getter(cls)



More information about the Pypy-commit mailing list