[pypy-commit] pypy py3k: s/func_code/__code__

antocuni noreply at buildbot.pypy.org
Tue Feb 21 16:07:31 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52729:cad083e080fd
Date: 2012-02-21 12:29 +0100
http://bitbucket.org/pypy/pypy/changeset/cad083e080fd/

Log:	s/func_code/__code__

diff --git a/pypy/module/_collections/app_defaultdict.py b/pypy/module/_collections/app_defaultdict.py
--- a/pypy/module/_collections/app_defaultdict.py
+++ b/pypy/module/_collections/app_defaultdict.py
@@ -25,7 +25,7 @@
  
     def __missing__(self, key):
         pass    # this method is written at interp-level
-    __missing__.func_code = _collections.__missing__.func_code
+    __missing__.__code__ = _collections.__missing__.__code__
 
     def __repr__(self, recurse=set()):
         # XXX not thread-safe, but good enough


More information about the pypy-commit mailing list