Patchwork [02,of,11] doctest: replace .iteritems() with .items()

login
register
mail settings
Submitter Yuya Nishihara
Date Sept. 4, 2017, 3:08 p.m.
Message ID <946edb712b2fb76364f9.1504537701@mimosa>
Download mbox | patch
Permalink /patch/23656/
State Accepted
Headers show

Comments

Yuya Nishihara - Sept. 4, 2017, 3:08 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1504416937 -32400
#      Sun Sep 03 14:35:37 2017 +0900
# Node ID 946edb712b2fb76364f9f2e24b284ddb86dd8013
# Parent  f47091c3f4d6d27bd2c38306c1d8d5e8a67707a5
doctest: replace .iteritems() with .items()

Patch

diff --git a/mercurial/changelog.py b/mercurial/changelog.py
--- a/mercurial/changelog.py
+++ b/mercurial/changelog.py
@@ -42,11 +42,11 @@  def _string_escape(text):
 def decodeextra(text):
     """
     >>> sorted(decodeextra(encodeextra({b'foo': b'bar', b'baz': chr(0) + b'2'})
-    ...                    ).iteritems())
+    ...                    ).items())
     [('baz', '\\x002'), ('branch', 'default'), ('foo', 'bar')]
     >>> sorted(decodeextra(encodeextra({b'foo': b'bar',
     ...                                 b'baz': chr(92) + chr(0) + b'2'})
-    ...                    ).iteritems())
+    ...                    ).items())
     [('baz', '\\\\\\x002'), ('branch', 'default'), ('foo', 'bar')]
     """
     extra = _defaultextra.copy()