# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-02-23 11:44:25 # Node ID dbadf28d4db0439524fd7037679b789af5e7908b # Parent f798709eb4b9de2a1f7ad720b1dc4dfd1d4c31b7 py3: use pycompat.bytestr to convert str returned by getpass.getuser to bytes diff --git a/hgext/acl.py b/hgext/acl.py --- a/hgext/acl.py +++ b/hgext/acl.py @@ -200,6 +200,7 @@ from mercurial import ( error, extensions, match, + pycompat, registrar, util, ) @@ -340,7 +341,7 @@ def hook(ui, repo, hooktype, node=None, user = urlreq.unquote(url[3]) if user is None: - user = getpass.getuser() + user = pycompat.bytestr(getpass.getuser()) ui.debug('acl: checking access for user "%s"\n' % user)