Mercurial > hg > mercurial-source
diff mercurial/keepalive.py @ 28949:b1b22185c764
keepalive: remove useless parentheses around exception type
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 28 Feb 2016 00:00:13 -0800 (2016-02-28) |
parents | 0765d8423fbc |
children | 032c4c2f802a |
line wrap: on
line diff
--- a/mercurial/keepalive.py +++ b/mercurial/keepalive.py @@ -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)