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

Augie Fackler raf at durin42.com
Mon Nov 21 23:48:03 UTC 2016


# HG changeset patch
# User Augie Fackler <augie at 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

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):


More information about the Mercurial-devel mailing list