[pypy-commit] pypy jit-settrace: Consistency

alex_gaynor noreply at buildbot.pypy.org
Thu Oct 24 23:05:16 CEST 2013


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: jit-settrace
Changeset: r67585:381c742cb3e8
Date: 2013-10-24 14:04 -0700
http://bitbucket.org/pypy/pypy/changeset/381c742cb3e8/

Log:	Consistency

diff --git a/pypy/interpreter/eval.py b/pypy/interpreter/eval.py
--- a/pypy/interpreter/eval.py
+++ b/pypy/interpreter/eval.py
@@ -93,7 +93,7 @@
         if self.w_locals is None:
             self.w_locals = self.space.newdict()
         varnames = self.getcode().getvarnames()
-        for i in range(min(len(varnames), self.pycode.co_nlocals)):
+        for i in range(min(len(varnames), self.getcode().co_nlocals)):
             name = varnames[i]
             w_value = self.locals_stack_w[i]
             w_name = self.space.wrap(name)
@@ -111,7 +111,7 @@
         # Copy values from self.w_locals to the fastlocals
         assert self.w_locals is not None
         varnames = self.getcode().getvarnames()
-        numlocals = self.pycode.co_nlocals
+        numlocals = self.getcode().co_nlocals
 
         new_fastlocals_w = [None] * numlocals
 


More information about the pypy-commit mailing list