diff --git a/mercurial/match.py b/mercurial/match.py --- a/mercurial/match.py +++ b/mercurial/match.py @@ -368,7 +368,7 @@ def _donormalize(patterns, default, root % ( pat, inst.message, - ) # pytype: disable=unsupported-operands + ) ) except IOError as inst: if warn: