py3: fix keyword arguments handling in hgext/acl.py
authorPulkit Goyal <7895pulkit@gmail.com>
Fri, 23 Feb 2018 17:15:36 +0530
changeset 36377 39212037e65e
parent 36376 dbadf28d4db0
child 36378 27ab9264dd61
py3: fix keyword arguments handling in hgext/acl.py # skip-blame because we added r'' prefixes
hgext/acl.py
--- a/hgext/acl.py	Fri Feb 23 17:14:25 2018 +0530
+++ b/hgext/acl.py	Fri Feb 23 17:15:36 2018 +0530
@@ -335,8 +335,8 @@
         return
 
     user = None
-    if source == 'serve' and 'url' in kwargs:
-        url = kwargs['url'].split(':')
+    if source == 'serve' and r'url' in kwargs:
+        url = kwargs[r'url'].split(':')
         if url[0] == 'remote' and url[1].startswith('http'):
             user = urlreq.unquote(url[3])