# HG changeset patch # User Gregory Szorc # Date 2016-02-28 08:00:13 # Node ID b1b22185c76416f1a41b8d38612a0dace267bcfb # Parent cdc6319f6a7d620d4157065bdf7dfe222b662f4b keepalive: remove useless parentheses around exception type diff --git a/mercurial/keepalive.py b/mercurial/keepalive.py --- a/mercurial/keepalive.py +++ b/mercurial/keepalive.py @@ -345,7 +345,7 @@ class KeepAliveHandler(object): 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)