[PATCH 4 of 6] py3: fix type of ui.configitems(ignoresub=True) result

Yuya Nishihara yuya at tcha.org
Sun Mar 4 16:41:39 EST 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1520197278 18000
#      Sun Mar 04 16:01:18 2018 -0500
# Node ID 8fe5cf00bb5e51dadafa1811c9fc1aeb2fdb47d4
# Parent  9e19942b51da8d09f6a6eea8dc12b1d7a2c4adab
py3: fix type of ui.configitems(ignoresub=True) result

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -735,7 +735,7 @@ class ui(object):
             for k, v in items:
                 if ':' not in k:
                     newitems[k] = v
-            items = newitems.items()
+            items = list(newitems.iteritems())
         if self.debugflag and not untrusted and self._reportuntrusted:
             for k, v in self._ucfg.items(section):
                 if self._tcfg.get(section, k) != v:


More information about the Mercurial-devel mailing list