D5715: statichttprepo: use URLError.reason directly

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Sat Jan 26 21:53:47 UTC 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2bf689b13a17: statichttprepo: use URLError.reason directly (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5715?vs=13507&id=13515

REVISION DETAIL
  https://phab.mercurial-scm.org/D5715

AFFECTED FILES
  mercurial/statichttprepo.py

CHANGE DETAILS

diff --git a/mercurial/statichttprepo.py b/mercurial/statichttprepo.py
--- a/mercurial/statichttprepo.py
+++ b/mercurial/statichttprepo.py
@@ -59,7 +59,7 @@
             num = inst.code == 404 and errno.ENOENT or None
             raise IOError(num, inst)
         except urlerr.urlerror as inst:
-            raise IOError(None, inst.reason[1])
+            raise IOError(None, inst.reason)
 
         if code == 200:
             # HTTPRangeHandler does nothing if remote does not support



To: indygreg, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list