diff -r 44b26349127b -r d44e3c45f0e4 mercurial/grep.py --- a/mercurial/grep.py Sun May 29 12:38:54 2022 +0200 +++ b/mercurial/grep.py Sun May 29 15:17:27 2022 +0200 @@ -67,15 +67,15 @@ sm = difflib.SequenceMatcher(None, a, b) for tag, alo, ahi, blo, bhi in sm.get_opcodes(): if tag == 'insert': - for i in pycompat.xrange(blo, bhi): + for i in range(blo, bhi): yield (b'+', b[i]) elif tag == 'delete': - for i in pycompat.xrange(alo, ahi): + for i in range(alo, ahi): yield (b'-', a[i]) elif tag == 'replace': - for i in pycompat.xrange(alo, ahi): + for i in range(alo, ahi): yield (b'-', a[i]) - for i in pycompat.xrange(blo, bhi): + for i in range(blo, bhi): yield (b'+', b[i])