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

antocuni noreply at buildbot.pypy.org
Tue Feb 28 18:44:44 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52994:970e29f1f3d3
Date: 2012-02-28 18:24 +0100
http://bitbucket.org/pypy/pypy/changeset/970e29f1f3d3/

Log:	s/func_code/__code__

diff --git a/pypy/module/marshal/test/test_marshal.py b/pypy/module/marshal/test/test_marshal.py
--- a/pypy/module/marshal/test/test_marshal.py
+++ b/pypy/module/marshal/test/test_marshal.py
@@ -110,14 +110,14 @@
     def test_func_dot_func_code(self):
         def func(x):
             return lambda y: x+y
-        case = func.func_code
+        case = func.__code__
         self.marshal_check(case)
 
     def test_scopefunc_dot_func_code(self):
         def func(x):
             return lambda y: x+y
         scopefunc = func(42)
-        case = scopefunc.func_code
+        case = scopefunc.__code__
         self.marshal_check(case)
 
     def test_u_quote_hello_quote_(self):


More information about the pypy-commit mailing list