# HG changeset patch # User Matt Mackall # Date 1350622515 18000 # Node ID 98347af645933e1e01323912c819a4b69653641b # Parent 08d11b82d9fc27e60f18b1b7aa43a4f6560c0fe5 httpclient: fix calling convention violation diff -r 08d11b82d9fc -r 98347af64593 mercurial/httpconnection.py --- a/mercurial/httpconnection.py Mon Oct 08 23:49:36 2012 +0900 +++ b/mercurial/httpconnection.py Thu Oct 18 23:55:15 2012 -0500 @@ -234,7 +234,9 @@ 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):