Patchwork D1634: py3: handle keyword arguments correctly in httpconnection.py

login
register
mail settings
Submitter phabricator
Date Dec. 10, 2017, 1:09 a.m.
Message ID <differential-rev-PHID-DREV-hsao7kumcyu5l2ge7lrf-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/26152/
State Superseded
Headers show

Comments

phabricator - Dec. 10, 2017, 1:09 a.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1634

AFFECTED FILES
  mercurial/httpconnection.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/httpconnection.py b/mercurial/httpconnection.py
--- a/mercurial/httpconnection.py
+++ b/mercurial/httpconnection.py
@@ -248,7 +248,7 @@ 
             return self.https_open(req)
         def makehttpcon(*args, **kwargs):
             k2 = dict(kwargs)
-            k2['use_ssl'] = False
+            k2[r'use_ssl'] = False
             return HTTPConnection(*args, **k2)
         return self.do_open(makehttpcon, req, False)
 
@@ -288,8 +288,8 @@ 
             if '[' in host:
                 host = host[1:-1]
 
-        kwargs['keyfile'] = keyfile
-        kwargs['certfile'] = certfile
+        kwargs[r'keyfile'] = keyfile
+        kwargs[r'certfile'] = certfile
 
         con = HTTPConnection(host, port, use_ssl=True,
                              ssl_wrap_socket=sslutil.wrapsocket,