D7286: match: suppress error about subscripting an exception
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Nov 6 18:24:16 EST 2019
durin42 updated this revision to Diff 17671.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D7286?vs=17656&id=17671
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7286/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7286
AFFECTED FILES
mercurial/match.py
CHANGE DETAILS
diff --git a/mercurial/match.py b/mercurial/match.py
--- a/mercurial/match.py
+++ b/mercurial/match.py
@@ -345,7 +345,10 @@
):
kindpats.append((k, p, source or pat))
except error.Abort as inst:
- raise error.Abort(b'%s: %s' % (pat, inst[0]))
+ raise error.Abort(
+ b'%s: %s'
+ % (pat, inst[0]) # pytype: disable=unsupported-operands
+ )
except IOError as inst:
if warn:
warn(
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list