config: remove pycompat.iteritems()
authorGregory Szorc <gregory.szorc@gmail.com>
Tue, 01 Mar 2022 20:47:37 -0800
changeset 48920 b4ab4fd23199
parent 48919 8b3f3f10e808
child 48921 c9774f5fa729
config: remove pycompat.iteritems() Differential Revision: https://phab.mercurial-scm.org/D12325
mercurial/config.py
--- a/mercurial/config.py	Mon Feb 21 11:08:04 2022 -0700
+++ b/mercurial/config.py	Tue Mar 01 20:47:37 2022 -0800
@@ -14,7 +14,6 @@
 from . import (
     encoding,
     error,
-    pycompat,
     util,
 )
 
@@ -110,7 +109,7 @@
         return sorted(self._data.keys())
 
     def items(self, section):
-        items = pycompat.iteritems(self._data.get(section, {}))
+        items = self._data.get(section, {}).items()
         return [(k, v[0]) for (k, v) in items]
 
     def set(self, section, item, value, source=b""):