Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r91666:bdd61a245eeb
Date: 2017-07-02 16:12 +0200
http://bitbucket.org/pypy/pypy/changeset/bdd61a245eeb/
Log: Fix encoding
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
@@ -106,7 +106,7 @@
"%s: %d" % (msg, widen(uid))))
return make_struct_passwd(space, pw)
-@unwrap_spec(name='text')
+@unwrap_spec(name='fsencode')
def getpwnam(space, name):
"""
getpwnam(name) -> (pw_name,pw_passwd,pw_uid,
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit