config: remove pycompat.iteritems()
Differential Revision: https://phab.mercurial-scm.org/D12325
--- 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""):