D7286: match: suppress error about subscripting an exception
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Thu Nov 7 03:35:19 EST 2019
Closed by commit rHG6ff196d2553b: match: suppress error about subscripting an exception (authored by durin42).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D7286?vs=17671&id=17700
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, indygreg
Cc: indygreg, mercurial-devel
More information about the Mercurial-devel
mailing list