diff mercurial/keepalive.py @ 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 0765d8423fbc
children 032c4c2f802a
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)