Mercurial > public > mercurial-scm > hg
diff mercurial/config.py @ 48920: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 | f5127b87f160 |
children | 642e31cb55f0 |
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""):