[Updated] D12325: config: remove pycompat.iteritems()
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Tue Mar 8 10:57:54 UTC 2022
Closed by commit rHGb4ab4fd23199: config: remove pycompat.iteritems() (authored by indygreg).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12325?vs=32536&id=32577
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12325/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12325
AFFECTED FILES
mercurial/config.py
CHANGE DETAILS
diff --git a/mercurial/config.py b/mercurial/config.py
--- a/mercurial/config.py
+++ b/mercurial/config.py
@@ -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""):
To: indygreg, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220308/f6ad28de/attachment-0002.html>
More information about the Mercurial-patches
mailing list