diff -r a0674e916fb6 -r f254fc73d956 mercurial/match.py --- a/mercurial/match.py Thu Mar 03 17:39:20 2022 -0800 +++ b/mercurial/match.py Thu Mar 03 18:28:30 2022 -0800 @@ -1638,7 +1638,7 @@ continue linesyntax = syntax - for s, rels in pycompat.iteritems(syntaxes): + for s, rels in syntaxes.items(): if line.startswith(rels): linesyntax = rels line = line[len(rels) :]