[PATCH 04 of 11] py3: fix keyword arguments handling in hgext/acl.py

Pulkit Goyal 7895pulkit at gmail.com
Fri Feb 23 13:15:17 EST 2018


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1519386336 -19800
#      Fri Feb 23 17:15:36 2018 +0530
# Node ID 6610c379cb0f90d9dbdc787e3d7982fce07ded86
# Parent  dbcf3a406cf79d296d7e29ea2786fd647facd367
py3: fix keyword arguments handling in hgext/acl.py

# skip-blame because we added r'' prefixes

diff --git a/hgext/acl.py b/hgext/acl.py
--- a/hgext/acl.py
+++ b/hgext/acl.py
@@ -335,8 +335,8 @@ def hook(ui, repo, hooktype, node=None, 
         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])
 


More information about the Mercurial-devel mailing list