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/ext/extlinks.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/ext/extlinks.py')
-rw-r--r-- | sphinx/ext/extlinks.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/ext/extlinks.py b/sphinx/ext/extlinks.py index 18da573ef..2a54761af 100644 --- a/sphinx/ext/extlinks.py +++ b/sphinx/ext/extlinks.py @@ -24,6 +24,7 @@ :license: BSD, see LICENSE for details. """ +from six import iteritems from docutils import nodes, utils from sphinx.util.nodes import split_explicit_title @@ -51,7 +52,7 @@ def make_link_role(base_url, prefix): return role def setup_link_roles(app): - for name, (base_url, prefix) in app.config.extlinks.iteritems(): + for name, (base_url, prefix) in iteritems(app.config.extlinks): app.add_role(name, make_link_role(base_url, prefix)) def setup(app): |