changeset 34147:264872544362

doctest: replace .iteritems() with .items()
author Yuya Nishihara <yuya@tcha.org>
date Sun, 03 Sep 2017 14:35:37 +0900
parents 0fa781320203
children 708b5530a273
files mercurial/changelog.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/changelog.py	Sun Sep 03 14:32:11 2017 +0900
+++ b/mercurial/changelog.py	Sun Sep 03 14:35:37 2017 +0900
@@ -42,11 +42,11 @@
 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()