Author: Philip Jenvey <pjen...@underboss.org> Branch: py3k Changeset: r60319:0eaadba95e28 Date: 2013-01-21 13:36 -0800 http://bitbucket.org/pypy/pypy/changeset/0eaadba95e28/
Log: func_code -> __code__ diff --git a/lib-python/3.2/inspect.py b/lib-python/3.2/inspect.py --- a/lib-python/3.2/inspect.py +++ b/lib-python/3.2/inspect.py @@ -767,7 +767,7 @@ and 'varkw' are the names of the * and ** arguments or None.""" if not iscode(co): - if hasattr(len, 'func_code') and type(co) is type(len.func_code): + if hasattr(len, '__code__') and type(co) is type(len.func_code): # PyPy extension: built-in function objects have a func_code too. # There is no co_code on it, but co_argcount and co_varnames and # co_flags are present. _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit