# HG changeset patch # User Matt Mackall # Date 2012-10-19 04:55:15 # Node ID 98347af645933e1e01323912c819a4b69653641b # Parent 08d11b82d9fc27e60f18b1b7aa43a4f6560c0fe5 httpclient: fix calling convention violation diff --git a/mercurial/httpconnection.py b/mercurial/httpconnection.py --- a/mercurial/httpconnection.py +++ b/mercurial/httpconnection.py @@ -234,7 +234,9 @@ class http2handler(urllib2.HTTPHandler, if req.get_full_url().startswith('https'): return self.https_open(req) def makehttpcon(*args, **kwargs): - return HTTPConnection(*args, use_ssl=False, **kwargs) + k2 = dict(kwargs) + k2['use_ssl'] = False + return HTTPConnection(*args, **k2) return self.do_open(makehttpcon, req, False) def https_open(self, req):