# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1512861424 -19800 # Node ID 8549ca7fcde134c848a74de37530b36d0a0cee40 # Parent 056a9c8813aa35414990e557e27f81a3eba6c63b py3: handle keyword arguments correctly in httpconnection.py Differential Revision: https://phab.mercurial-scm.org/D1634 diff -r 056a9c8813aa -r 8549ca7fcde1 mercurial/httpconnection.py --- a/mercurial/httpconnection.py Sun Dec 10 04:46:50 2017 +0530 +++ b/mercurial/httpconnection.py Sun Dec 10 04:47:04 2017 +0530 @@ -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,