Mercurial > hg
comparison hgext/acl.py @ 36377:39212037e65e
py3: fix keyword arguments handling in hgext/acl.py
# skip-blame because we added r'' prefixes
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 23 Feb 2018 17:15:36 +0530 |
parents | dbadf28d4db0 |
children | 2827fa74adbc |
comparison
equal
deleted
inserted
replaced
36376:dbadf28d4db0 | 36377:39212037e65e |
---|---|
333 source not in ui.configlist('acl', 'sources')): | 333 source not in ui.configlist('acl', 'sources')): |
334 ui.debug('acl: changes have source "%s" - skipping\n' % source) | 334 ui.debug('acl: changes have source "%s" - skipping\n' % source) |
335 return | 335 return |
336 | 336 |
337 user = None | 337 user = None |
338 if source == 'serve' and 'url' in kwargs: | 338 if source == 'serve' and r'url' in kwargs: |
339 url = kwargs['url'].split(':') | 339 url = kwargs[r'url'].split(':') |
340 if url[0] == 'remote' and url[1].startswith('http'): | 340 if url[0] == 'remote' and url[1].startswith('http'): |
341 user = urlreq.unquote(url[3]) | 341 user = urlreq.unquote(url[3]) |
342 | 342 |
343 if user is None: | 343 if user is None: |
344 user = pycompat.bytestr(getpass.getuser()) | 344 user = pycompat.bytestr(getpass.getuser()) |