Author: Brian Kearns <[email protected]>
Branch: stdlib-2.7.6
Changeset: r69658:13e440892ed6
Date: 2014-03-04 00:02 -0500
http://bitbucket.org/pypy/pypy/changeset/13e440892ed6/
Log: make translation happy
diff --git a/pypy/module/pwd/interp_pwd.py b/pypy/module/pwd/interp_pwd.py
--- a/pypy/module/pwd/interp_pwd.py
+++ b/pypy/module/pwd/interp_pwd.py
@@ -102,7 +102,8 @@
raise
pw = c_getpwuid(uid)
if not pw:
- raise oefmt(space.w_KeyError, "%s: %d", msg, uid)
+ raise OperationError(space.w_KeyError, space.wrap(
+ "%s: %d" % (msg, uid)))
return make_struct_passwd(space, pw)
@unwrap_spec(name=str)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit