Author: Manuel Jacob
Branch: remove-remaining-smm
Changeset: r69371:1852ff9bd7f5
Date: 2014-02-24 21:50 +0100
http://bitbucket.org/pypy/pypy/changeset/1852ff9bd7f5/
Log: Revert another oefmt.
diff --git a/pypy/objspace/std/util.py b/pypy/objspace/std/util.py
--- a/pypy/objspace/std/util.py
+++ b/pypy/objspace/std/util.py
@@ -1,4 +1,4 @@
-from pypy.interpreter.error import oefmt
+from pypy.interpreter.error import oefmt, OperationError
from rpython.rlib.rstring import InvalidBaseError
@@ -30,7 +30,7 @@
def wrap_parsestringerror(space, e, w_source):
if isinstance(e, InvalidBaseError):
- raise oefmt(space.w_ValueError, e.msg)
+ raise OperationError(space.w_ValueError, space.wrap(e.msg))
else:
raise oefmt(space.w_ValueError, '%s: %s',
e.msg, space.str_w(space.repr(w_source)))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit