Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-09-11 15:50:55 +0300
committerJon Dufresne <jon.dufresne@gmail.com>2018-09-11 16:03:34 +0300
commit0d6be504ea4afc786b40ff8b87193ccdb0796951 (patch)
tree767ba9df7dc8759aaa588510121828b5d23becac /sphinx/versioning.py
parent844a3a5c226ff8891a1ce139f10ac92157c75da5 (diff)
Remove use of six.iteritems()
In Python 3, dict.items() is always an iterator.
Diffstat (limited to 'sphinx/versioning.py')
-rw-r--r--sphinx/versioning.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/versioning.py b/sphinx/versioning.py
index 58b648069..abe7c3f10 100644
--- a/sphinx/versioning.py
+++ b/sphinx/versioning.py
@@ -14,7 +14,6 @@ from itertools import product
from operator import itemgetter
from uuid import uuid4
-from six import iteritems
from six.moves import cPickle as pickle
from six.moves import range, zip_longest
@@ -102,7 +101,7 @@ def merge_doctrees(old, new, condition):
# choose the old node with the best ratio for each new node and set the uid
# as long as the ratio is under a certain value, in which case we consider
# them not changed but different
- ratios = sorted(iteritems(ratios), key=itemgetter(1)) # type: ignore
+ ratios = sorted(ratios.items(), key=itemgetter(1)) # type: ignore
for (old_node, new_node), ratio in ratios:
if new_node in seen:
continue