summaryrefslogtreecommitdiff
path: root/sphinx/builders/gettext.py
diff options
context:
space:
mode:
authorTakayuki Shimizukawa <shimizukawa@gmail.com>2014-04-30 23:25:44 +0900
committerTakayuki Shimizukawa <shimizukawa@gmail.com>2014-04-30 23:25:44 +0900
commit2d1549b35a4adea66aebd0b7d9266731dd7ece6f (patch)
tree7f82f3e5a85f1946276416a44272b6860c355d4a /sphinx/builders/gettext.py
parent6ae3b68859562f07a1a7e215a7b55dce800305a9 (diff)
downloadsphinx-git-2d1549b35a4adea66aebd0b7d9266731dd7ece6f.tar.gz
wrap py3 iterators with list() for each places that expect a list object. refs #1350.
Diffstat (limited to 'sphinx/builders/gettext.py')
-rw-r--r--sphinx/builders/gettext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/builders/gettext.py b/sphinx/builders/gettext.py
index f36d0202c..aeb98aaab 100644
--- a/sphinx/builders/gettext.py
+++ b/sphinx/builders/gettext.py
@@ -110,7 +110,7 @@ class I18nBuilder(Builder):
for node, entries in traverse_translatable_index(doctree):
for typ, msg, tid, main in entries:
for m in split_index_msg(typ, msg):
- if typ == 'pair' and m in pairindextypes.values():
+ if typ == 'pair' and m in list(pairindextypes.values()):
# avoid built-in translated message was incorporated
# in 'sphinx.util.nodes.process_index_entry'
continue