[IMP] technical: remove future warning of Sphinx

This commit is contained in:
Arnaud Joset 2020-02-11 13:42:55 +01:00 committed by Antoine Vandevenne (anv)
parent a0f6d3e925
commit 950b460794

View File

@ -651,7 +651,7 @@ class BootstrapTranslator(nodes.NodeVisitor, object):
self.body.append(title if title else util.nodes.clean_astext(env.titles[ref]))
self.body.append(u'</h2>')
entries = [(title, ref)] if not toc else ((e[0], e[1]) for e in toc[0]['entries'])
entries = [(title, ref)] if not toc else ((e[0], e[1]) for e in list(toc)[0]['entries'])
for subtitle, subref in entries:
baseuri = self.builder.get_target_uri(node['parent'])