changeset 40874 | 348352658e4b |
parent 40426 | 588f1e9a4d16 |
child 41408 | a43acfa2b76d |
--- a/mercurial/keepalive.py Sun Dec 09 16:49:55 2018 +0100 +++ b/mercurial/keepalive.py Sun Dec 09 19:40:54 2018 -0500 @@ -636,7 +636,7 @@ self.sentbytescount += len(str) except socket.error as v: reraise = True - if v[0] == errno.EPIPE: # Broken pipe + if v.args[0] == errno.EPIPE: # Broken pipe if self._HTTPConnection__state == httplib._CS_REQ_SENT: self._broken_pipe_resp = None self._broken_pipe_resp = self.getresponse()