New submission from Etienne Robillard: Trying to push to a ssl server but python break in httplib.
erob@nguns:~/django-hotsauce$ hg push https://tkad...@bitbucket.org/tkadm30/django-hotsauce pushing to https://tkad...@bitbucket.org/tkadm30/django-hotsauce warning: bitbucket.org certificate with fingerprint 45:ad:ae:1a:cf:0e:73:47:06:07:e0:88:f5:cc:10:e5:fa:1c:f7:99 not verified (check hostfingerprints or web.cacerts config setting) ** unknown exception encountered, please report by visiting ** http://mercurial.selenic.com/wiki/BugTracker ** Python 2.7.3 (default, Aug 20 2014, 09:34:08) [GCC 4.7.2] ** Mercurial Distributed SCM (version 3.1) ** Extensions loaded: color, gpg, strip, mq, notify, patchbomb Traceback (most recent call last): File "/usr/local/bin/hg", line 43, in <module> mercurial.dispatch.run() File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 28, in run sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255) File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 69, in dispatch ret = _runcatch(req) File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 138, in _runcatch return _dispatch(req) File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 820, in _dispatch cmdpats, cmdoptions) File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 600, in runcommand ret = _runcommand(ui, options, cmd, d) File "/usr/local/lib/python2.7/site-packages/mercurial/extensions.py", line 196, in wrap return wrapper(origfn, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/hgext/color.py", line 433, in colorcmd return orig(ui_, opts, cmd, cmdfunc) File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 911, in _runcommand return checkargs() File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 882, in checkargs return cmdfunc() File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 817, in <lambda> d = lambda: util.checksignature(func)(ui, *args, **cmdoptions) File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 550, in check return func(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/mercurial/extensions.py", line 151, in wrap util.checksignature(origfn), *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 550, in check return func(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/hgext/mq.py", line 3393, in mqcommand return orig(ui, repo, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 550, in check return func(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/mercurial/commands.py", line 4768, in push other = hg.peer(repo, opts, dest) File "/usr/local/lib/python2.7/site-packages/mercurial/hg.py", line 129, in peer return _peerorrepo(rui, path, create).peer() File "/usr/local/lib/python2.7/site-packages/mercurial/hg.py", line 106, in _peerorrepo obj = _peerlookup(path).instance(ui, path, create) File "/usr/local/lib/python2.7/site-packages/mercurial/httppeer.py", line 261, in instance inst._fetchcaps() File "/usr/local/lib/python2.7/site-packages/mercurial/httppeer.py", line 58, in _fetchcaps self.caps = set(self._call('capabilities').split()) File "/usr/local/lib/python2.7/site-packages/mercurial/httppeer.py", line 172, in _call fp = self._callstream(cmd, **args) File "/usr/local/lib/python2.7/site-packages/mercurial/httppeer.py", line 119, in _callstream resp = self.urlopener.open(req) File "/usr/local/lib/python2.7/urllib2.py", line 400, in open response = self._open(req, data) File "/usr/local/lib/python2.7/urllib2.py", line 418, in _open '_open', req) File "/usr/local/lib/python2.7/urllib2.py", line 378, in _call_chain result = func(*args) File "/usr/local/lib/python2.7/site-packages/mercurial/url.py", line 371, in https_open return self.do_open(self._makeconnection, req) File "/usr/local/lib/python2.7/site-packages/mercurial/keepalive.py", line 255, in do_open r = h.getresponse() File "/usr/local/lib/python2.7/site-packages/mercurial/keepalive.py", line 577, in safegetresponse return cls.getresponse(self) File "/usr/local/lib/python2.7/httplib.py", line 1028, in getresponse response = self.response_class(*args, **kwds) File "/usr/local/lib/python2.7/site-packages/mercurial/keepalive.py", line 380, in __init__ httplib.HTTPResponse.__init__(self, sock, debuglevel, method) File "/usr/local/lib/python2.7/httplib.py", line 346, in __init__ self.fp = sock.makefile('rb', 0) File "/usr/local/lib/python2.7/ssl.py", line 366, in makefile return _fileobject(self, mode, bufsize, close=True) TypeError: file() takes at most 3 arguments (4 given) ---------- components: Library (Lib) messages: 225567 nosy: erob priority: normal severity: normal status: open title: httplib: TypeError with file() object in ssl.py type: behavior versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22235> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com