Author: Brian Kearns <[email protected]>
Branch: stdlib-2.7.6
Changeset: r69620:254623254a96
Date: 2014-03-02 12:36 -0500
http://bitbucket.org/pypy/pypy/changeset/254623254a96/

Log:    fix translation

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
@@ -3,7 +3,7 @@
 from rpython.rtyper.lltypesystem import rffi, lltype
 from pypy.interpreter.error import OperationError, oefmt
 from pypy.interpreter.gateway import unwrap_spec
-from rpython.rlib.rarithmetic import intmask, most_pos_value_of
+from rpython.rlib.rarithmetic import intmask, most_pos_value_of, widen
 
 
 eci = ExternalCompilationInfo(includes=['pwd.h'])
@@ -78,7 +78,7 @@
     uid = rffi.cast(uid_t, uid)
     pw = c_getpwuid(uid)
     if not pw:
-        raise oefmt(space.w_KeyError, "getpwuid(): uid not found: %d", uid)
+        raise oefmt(space.w_KeyError, "getpwuid(): uid not found: %d", 
widen(uid))
     return make_struct_passwd(space, pw)
 
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to