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

antocuni noreply at buildbot.pypy.org
Tue Feb 21 18:47:59 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52744:6b61991afc70
Date: 2012-02-21 16:11 +0100
http://bitbucket.org/pypy/pypy/changeset/6b61991afc70/

Log:	s/func_code/__code__

diff --git a/pypy/translator/test/test_geninterp.py b/pypy/translator/test/test_geninterp.py
--- a/pypy/translator/test/test_geninterp.py
+++ b/pypy/translator/test/test_geninterp.py
@@ -38,7 +38,7 @@
     snippet_ad = """if 1:
         def import_func():
             import copyreg
-            return copyreg._reconstructor.func_code.co_name
+            return copyreg._reconstructor.__code__.co_name
 
         def import_sys_func():
             import sys


More information about the pypy-commit mailing list