From patchwork Sat Feb 2 00:51:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D5794: py3: pass str into grp.getgrnam From: phabricator X-Patchwork-Id: 38307 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Sat, 2 Feb 2019 00:51:58 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHGe011c78da629: py3: pass str into grp.getgrnam (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D5794?vs=13678&id=13683 REVISION DETAIL https://phab.mercurial-scm.org/D5794 AFFECTED FILES contrib/python3-whitelist mercurial/posix.py CHANGE DETAILS To: pulkit, #hg-reviewers Cc: mercurial-devel diff --git a/mercurial/posix.py b/mercurial/posix.py --- a/mercurial/posix.py +++ b/mercurial/posix.py @@ -583,6 +583,7 @@ """Return the list of members of the group with the given name, KeyError if the group does not exist. """ + name = pycompat.sysstr(name) return list(grp.getgrnam(name).gr_mem) def spawndetached(args): diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist --- a/contrib/python3-whitelist +++ b/contrib/python3-whitelist @@ -5,6 +5,7 @@ test-absorb-rename.t test-absorb-strip.t test-absorb.t +test-acl.t test-add.t test-addremove-similar.t test-addremove.t