httpclient: fix calling convention violation
authorMatt Mackall <mpm@selenic.com>
Thu, 18 Oct 2012 23:55:15 -0500
changeset 17836 98347af64593
parent 17835 08d11b82d9fc
child 17837 b623e323c561
httpclient: fix calling convention violation
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):