diff -r a0674e916fb6 -r f254fc73d956 mercurial/commands.py --- a/mercurial/commands.py Thu Mar 03 17:39:20 2022 -0800 +++ b/mercurial/commands.py Thu Mar 03 18:28:30 2022 -0800 @@ -2469,7 +2469,7 @@ ) def debugcommands(ui, cmd=b'', *args): """list all available commands and options""" - for cmd, vals in sorted(pycompat.iteritems(table)): + for cmd, vals in sorted(table.items()): cmd = cmd.split(b'|')[0] opts = b', '.join([i[1] for i in vals[1]]) ui.write(b'%s: %s\n' % (cmd, opts)) @@ -7089,7 +7089,7 @@ c = repo.dirstate.copies() copied, renamed = [], [] - for d, s in pycompat.iteritems(c): + for d, s in c.items(): if s in status.removed: status.removed.remove(s) renamed.append(d)