changeset 28278:b1b22185c764

keepalive: remove useless parentheses around exception type
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 28 Feb 2016 00:00:13 -0800
parents cdc6319f6a7d
children c1fbc92d6238
files mercurial/keepalive.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)