changeset 48921:c9774f5fa729

debugcommands: remove pycompat.iteritems() Differential Revision: https://phab.mercurial-scm.org/D12326
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 21 Feb 2022 11:08:53 -0700
parents b4ab4fd23199
children fe056166b40d
files mercurial/debugcommands.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Tue Mar 01 20:47:37 2022 -0800
+++ b/mercurial/debugcommands.py	Mon Feb 21 11:08:53 2022 -0700
@@ -2384,7 +2384,7 @@
     fm_files.end()
 
     fm_extras = fm.nested(b'extras')
-    for f, d in sorted(pycompat.iteritems(ms.allextras())):
+    for f, d in sorted(ms.allextras().items()):
         if f in ms:
             # If file is in mergestate, we have already processed it's extras
             continue
@@ -2888,7 +2888,7 @@
             ui.status(pycompat.bytestr(r) + b'\n')
             return not r
         else:
-            for k, v in sorted(pycompat.iteritems(target.listkeys(namespace))):
+            for k, v in sorted(target.listkeys(namespace).items()):
                 ui.write(
                     b"%s\t%s\n"
                     % (stringutil.escapestr(k), stringutil.escapestr(v))