##// END OF EJS Templates
py3: use pycompat.bytestr to convert str returned by getpass.getuser to bytes
Pulkit Goyal -
r36394:dbadf28d default
parent child Browse files
Show More
@@ -200,6 +200,7 from mercurial import (
200 200 error,
201 201 extensions,
202 202 match,
203 pycompat,
203 204 registrar,
204 205 util,
205 206 )
@@ -340,7 +341,7 def hook(ui, repo, hooktype, node=None,
340 341 user = urlreq.unquote(url[3])
341 342
342 343 if user is None:
343 user = getpass.getuser()
344 user = pycompat.bytestr(getpass.getuser())
344 345
345 346 ui.debug('acl: checking access for user "%s"\n' % user)
346 347
General Comments 0
You need to be logged in to leave comments. Login now