[pypy-svn] r66920 - in pypy/branch/parser-compiler/pypy/interpreter/astcompiler: . tools
benjamin at codespeak.net
benjamin at codespeak.net
Tue Aug 18 17:10:43 CEST 2009
Author: benjamin
Date: Tue Aug 18 17:10:42 2009
New Revision: 66920
Modified:
pypy/branch/parser-compiler/pypy/interpreter/astcompiler/ast.py
pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools/asdl_py.py
Log:
pass space
Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/ast.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/ast.py (original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/ast.py Tue Aug 18 17:10:42 2009
@@ -1512,7 +1512,7 @@
if w_list is not None:
list_w = space.viewiterable(w_list)
if list_w:
- self.ops = [space.interp_w(cmpop, w_obj).to_simple_int() for w_obj in list_w]
+ self.ops = [space.interp_w(cmpop, w_obj).to_simple_int(space) for w_obj in list_w]
else:
self.ops = None
w_list = self.w_comparators
Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools/asdl_py.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools/asdl_py.py (original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools/asdl_py.py Tue Aug 18 17:10:42 2009
@@ -312,7 +312,7 @@
if tp in asdl.builtin_types:
return "space.%s(%s)" % (asdl_type_map[tp], name)
elif tp in simple_types:
- return "space.interp_w(%s, %s).to_simple_int()" % (tp, name)
+ return "space.interp_w(%s, %s).to_simple_int(space)" % (tp, name)
else:
return "space.interp_w(%s, %s)" % (tp, name)
More information about the Pypy-commit
mailing list