Author: Amaury Forgeot d'Arc <[email protected]>
Branch:
Changeset: r50610:1ed3eaa72e9d
Date: 2011-12-16 22:42 +0100
http://bitbucket.org/pypy/pypy/changeset/1ed3eaa72e9d/
Log: Run ./interpreter/astcompiler/tools/asdl_py.py
diff --git a/pypy/interpreter/astcompiler/ast.py
b/pypy/interpreter/astcompiler/ast.py
--- a/pypy/interpreter/astcompiler/ast.py
+++ b/pypy/interpreter/astcompiler/ast.py
@@ -101,9 +101,7 @@
missing = required[i]
if missing is not None:
err = "required field \"%s\" missing from %s"
- err = err % (missing, host)
- w_err = space.wrap(err)
- raise OperationError(space.w_TypeError, w_err)
+ raise operationerrfmt(space.w_TypeError, err, missing, host)
raise AssertionError("should not reach here")
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit