diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-11 05:50:55 -0700 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-11 06:03:34 -0700 |
commit | 0d6be504ea4afc786b40ff8b87193ccdb0796951 (patch) | |
tree | 767ba9df7dc8759aaa588510121828b5d23becac /sphinx/util/jsdump.py | |
parent | 844a3a5c226ff8891a1ce139f10ac92157c75da5 (diff) | |
download | sphinx-git-0d6be504ea4afc786b40ff8b87193ccdb0796951.tar.gz |
Remove use of six.iteritems()
In Python 3, dict.items() is always an iterator.
Diffstat (limited to 'sphinx/util/jsdump.py')
-rw-r--r-- | sphinx/util/jsdump.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/jsdump.py b/sphinx/util/jsdump.py index 6776691cf..17865f956 100644 --- a/sphinx/util/jsdump.py +++ b/sphinx/util/jsdump.py @@ -12,7 +12,7 @@ import re -from six import iteritems, integer_types, string_types +from six import integer_types, string_types from sphinx.util.pycompat import u @@ -102,7 +102,7 @@ def dumps(obj, key=False): return '{%s}' % ','.join(sorted('%s:%s' % ( dumps(key, True), dumps(value) - ) for key, value in iteritems(obj))) + ) for key, value in obj.items())) elif isinstance(obj, set): return '[%s]' % ','.join(sorted(dumps(x) for x in obj)) elif isinstance(obj, (tuple, list)): |