[pypy-svn] r66565 - pypy/branch/parser-compiler/pypy/interpreter/astcompiler

benjamin at codespeak.net benjamin at codespeak.net
Thu Jul 23 23:49:16 CEST 2009


Author: benjamin
Date: Thu Jul 23 23:49:15 2009
New Revision: 66565

Modified:
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/optimize.py
Log:
fix test

Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/optimize.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/optimize.py	(original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/optimize.py	Thu Jul 23 23:49:15 2009
@@ -245,7 +245,7 @@
                 w_const = node.as_constant()
                 if w_const is None:
                     return tup
-                consts_w[i] = node
+                consts_w[i] = w_const
         else:
             consts_w = []
         w_consts = self.space.newtuple(consts_w)



More information about the Pypy-commit mailing list