Author: Brian Kearns <[email protected]>
Branch: stdlib-2.7.6
Changeset: r69659:595fef85a265
Date: 2014-03-04 00:28 -0500
http://bitbucket.org/pypy/pypy/changeset/595fef85a265/
Log: this too
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 r_uint
+from rpython.rlib.rarithmetic import r_uint, widen
eci = ExternalCompilationInfo(includes=['pwd.h'])
@@ -103,7 +103,7 @@
pw = c_getpwuid(uid)
if not pw:
raise OperationError(space.w_KeyError, space.wrap(
- "%s: %d" % (msg, uid)))
+ "%s: %d" % (msg, widen(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