##// 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 b' from mercurial import ('
200 error,
200 error,
201 extensions,
201 extensions,
202 match,
202 match,
203 pycompat,
203 registrar,
204 registrar,
204 util,
205 util,
205 )
206 )
@@ -340,7 +341,7 b' def hook(ui, repo, hooktype, node=None, '
340 user = urlreq.unquote(url[3])
341 user = urlreq.unquote(url[3])
341
342
342 if user is None:
343 if user is None:
343 user = getpass.getuser()
344 user = pycompat.bytestr(getpass.getuser())
344
345
345 ui.debug('acl: checking access for user "%s"\n' % user)
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