Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r52734:422010ccb862
Date: 2012-02-21 13:40 +0100
http://bitbucket.org/pypy/pypy/changeset/422010ccb862/
Log: s/func_code/__code__
diff --git a/pypy/objspace/std/test/test_mapdict.py
b/pypy/objspace/std/test/test_mapdict.py
--- a/pypy/objspace/std/test/test_mapdict.py
+++ b/pypy/objspace/std/test/test_mapdict.py
@@ -655,7 +655,7 @@
"objspace.opcodes.CALL_METHOD": True})
#
def check(space, w_func, name):
- w_code = space.getattr(w_func, space.wrap('func_code'))
+ w_code = space.getattr(w_func, space.wrap('__code__'))
nameindex = map(space.str_w, w_code.co_names_w).index(name)
entry = w_code._mapdict_caches[nameindex]
entry.failure_counter = 0
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit