changeset 49011:b4ab4fd23199

config: remove pycompat.iteritems() Differential Revision: https://phab.mercurial-scm.org/D12325
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 01 Mar 2022 20:47:37 -0800
parents 8b3f3f10e808
children c9774f5fa729
files mercurial/config.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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""):