[pypy-svn] r66930 - in pypy/branch/parser-compiler/pypy/interpreter/astcompiler: . tools

benjamin at codespeak.net benjamin at codespeak.net
Tue Aug 18 18:26:15 CEST 2009


Author: benjamin
Date: Tue Aug 18 18:26:14 2009
New Revision: 66930

Modified:
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/ast.py
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools/asdl_py.py
Log:
replace inplace mod

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 18:26:14 2009
@@ -62,7 +62,7 @@
             missing = required[i]
             if missing is not None:
                  err = "required attribute '%s' missing from %s"
-                 err %= (missing, host)
+                 err = erro % (missing, host)
                  w_err = space.wrap(err)
                  raise OperationError(space.w_TypeError, w_err)
     raise AssertionError("should not reach here")

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 18:26:14 2009
@@ -600,7 +600,7 @@
             missing = required[i]
             if missing is not None:
                  err = "required attribute '%s' missing from %s"
-                 err %= (missing, host)
+                 err = erro % (missing, host)
                  w_err = space.wrap(err)
                  raise OperationError(space.w_TypeError, w_err)
     raise AssertionError("should not reach here")



More information about the Pypy-commit mailing list