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

login
register
mail settings
Submitter Yuya Nishihara
Date March 4, 2018, 9:41 p.m.
Message ID <8fe5cf00bb5e51dadafa.1520199699@mimosa>
Download mbox | patch
Permalink /patch/29005/
State Accepted
Headers show

Comments

Yuya Nishihara - March 4, 2018, 9:41 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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

Patch

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: