[pypy-commit] pypy py3k: Fix.
mjacob
noreply at buildbot.pypy.org
Thu Jun 4 14:27:20 CEST 2015
Author: Manuel Jacob <me at manueljacob.de>
Branch: py3k
Changeset: r77859:0b2fa08966dd
Date: 2015-06-04 14:09 +0200
http://bitbucket.org/pypy/pypy/changeset/0b2fa08966dd/
Log: Fix.
diff --git a/lib_pypy/grp.py b/lib_pypy/grp.py
--- a/lib_pypy/grp.py
+++ b/lib_pypy/grp.py
@@ -43,8 +43,7 @@
def getgrnam(name):
if not isinstance(name, str):
raise TypeError("expected string")
- name = os.fsencode(name)
- res = lib.getgrnam(name)
+ res = lib.getgrnam(os.fsencode(name))
if not res:
raise KeyError("'getgrnam(): name not found: %s'" % name)
return _group_from_gstruct(res)
More information about the pypy-commit
mailing list