[pypy-commit] pypy guard-compatible: fix translation

cfbolz pypy.commits at gmail.com
Fri May 20 06:02:59 EDT 2016


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: guard-compatible
Changeset: r84523:8b13951942df
Date: 2016-05-18 14:19 +0200
http://bitbucket.org/pypy/pypy/changeset/8b13951942df/

Log:	fix translation

diff --git a/pypy/objspace/std/callmethod.py b/pypy/objspace/std/callmethod.py
--- a/pypy/objspace/std/callmethod.py
+++ b/pypy/objspace/std/callmethod.py
@@ -44,6 +44,7 @@
 
     safe = False
     w_descr = None
+    w_descr_cell = None
     name = None
     if jit.we_are_jitted():
         # compute safeness without reading the type
@@ -62,7 +63,6 @@
             version_tag = w_type.version_tag()
             if version_tag is None:
                 _, w_descr = w_type._lookup_where(name)
-                w_descr_cell = None
             else:
                 _, w_descr_cell = w_type._pure_lookup_where_with_method_cache(
                     name, version_tag)


More information about the pypy-commit mailing list