[pypy-svn] r73275 - pypy/branch/cpython-extension/pypy/interpreter
fijal at codespeak.net
fijal at codespeak.net
Fri Apr 2 03:01:55 CEST 2010
Author: fijal
Date: Fri Apr 2 03:01:54 2010
New Revision: 73275
Modified:
pypy/branch/cpython-extension/pypy/interpreter/typedef.py
Log:
This is totally needed when running untranslated
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 03:01:54 2010
@@ -315,9 +315,9 @@
# - if cls is a string, XXX unused?
if cls is None and use_closure:
return func
- #if hasattr(func, 'im_func'):
- # assert func.im_class is cls
- # func = func.im_func
+ if hasattr(func, 'im_func'):
+ assert func.im_class is cls
+ func = func.im_func
miniglobals = {
func.__name__: func,
More information about the Pypy-commit
mailing list