Author: Manuel Jacob <m...@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)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to