author | Gregory Szorc <gregory.szorc@gmail.com> |
Sun, 28 Feb 2016 00:00:13 -0800 | |
changeset 28278 | b1b22185c764 |
parent 28277 | cdc6319f6a7d |
child 28279 | c1fbc92d6238 |
--- a/mercurial/keepalive.py Wed Feb 24 20:45:47 2016 +0000 +++ b/mercurial/keepalive.py Sun Feb 28 00:00:13 2016 -0800 @@ -345,7 +345,7 @@ h.putheader('Content-length', '%d' % len(data)) else: h.putrequest('GET', req.get_selector(), **skipheaders) - except (socket.error) as err: + except socket.error as err: raise urllib2.URLError(err) for k, v in headers.items(): h.putheader(k, v)