diff options
author | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-04-29 21:20:56 +0900 |
---|---|---|
committer | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-04-29 21:20:56 +0900 |
commit | ce4d342e20739ab994a451f367d5bce2c5edb5d2 (patch) | |
tree | 025c7e7b7248a22c3ee04d413635c385fc5e8c49 /sphinx/domains/javascript.py | |
parent | c3c879f2c63afbb39ad4d76ecc083cddd41d9946 (diff) | |
download | sphinx-git-ce4d342e20739ab994a451f367d5bce2c5edb5d2.tar.gz |
use six privided iteritems(),itervalues() to support py2/py3 in one source. refs #1350.
Diffstat (limited to 'sphinx/domains/javascript.py')
-rw-r--r-- | sphinx/domains/javascript.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sphinx/domains/javascript.py b/sphinx/domains/javascript.py index 9b7777f41..1f0ea1b55 100644 --- a/sphinx/domains/javascript.py +++ b/sphinx/domains/javascript.py @@ -9,6 +9,8 @@ :license: BSD, see LICENSE for details. """ +from six import iteritems + from sphinx import addnodes from sphinx.domains import Domain, ObjType from sphinx.locale import l_, _ @@ -215,6 +217,6 @@ class JavaScriptDomain(Domain): name.replace('$', '_S_'), contnode, name) def get_objects(self): - for refname, (docname, type) in self.data['objects'].iteritems(): + for refname, (docname, type) in iteritems(self.data['objects']): yield refname, refname, type, docname, \ refname.replace('$', '_S_'), 1 |