Patchwork [1,of,5,oldpy] httppeer: drop an except block that says it happens only on Python 2.3

login
register
mail settings
Submitter Augie Fackler
Date Nov. 21, 2016, 11:48 p.m.
Message ID <2959ba0b3a7b265f6e71.1479772083@arthedain.pit.corp.google.com>
Download mbox | patch
Permalink /patch/17671/
State Accepted
Headers show

Comments

Augie Fackler - Nov. 21, 2016, 11:48 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1479768431 18000
#      Mon Nov 21 17:47:11 2016 -0500
# Node ID 2959ba0b3a7b265f6e717faaa1f45292b8f606e9
# Parent  55b0a192ce240483da89ac7376bc6392d3c1c46f
httppeer: drop an except block that says it happens only on Python 2.3

Patch

diff --git a/mercurial/httppeer.py b/mercurial/httppeer.py
--- a/mercurial/httppeer.py
+++ b/mercurial/httppeer.py
@@ -169,9 +169,6 @@  class httppeer(wireproto.wirepeer):
             self.ui.debug('http error while sending %s command\n' % cmd)
             self.ui.traceback()
             raise IOError(None, inst)
-        except IndexError:
-            # this only happens with Python 2.3, later versions raise URLError
-            raise error.Abort(_('http error, possibly caused by proxy setting'))
         # record the url we got redirected to
         resp_url = resp.geturl()
         if resp_url.endswith(qs):