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

2017-12-09 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG8549ca7fcde1: py3: handle keyword arguments correctly in 
httpconnection.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1634?vs=4301&id=4314

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

AFFECTED FILES
  mercurial/httpconnection.py

CHANGE DETAILS

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,



To: pulkit, #hg-reviewers, durin42
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


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

2017-12-09 Thread pulkit (Pulkit Goyal)
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

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,



To: pulkit, #hg-reviewers
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel