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

login
register
mail settings
Submitter Pulkit Goyal
Date Feb. 23, 2018, 6:15 p.m.
Message ID <6610c379cb0f90d9dbdc.1519409717@workspace>
Download mbox | patch
Permalink /patch/28291/
State Accepted
Headers show

Comments

Pulkit Goyal - Feb. 23, 2018, 6:15 p.m.
# HG changeset patch
# User Pulkit Goyal <7895pulkit@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

Patch

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])