mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix KeysView object does not support indexing in py3
This commit is contained in:
parent
2be87e4851
commit
5cdec60c26
@ -372,7 +372,7 @@ class BuildEnvironment(object):
|
|||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
# document does not exist
|
# document does not exist
|
||||||
suffix = self.config.source_suffix.keys()[0]
|
suffix = list(self.config.source_suffix)[0]
|
||||||
if base is True:
|
if base is True:
|
||||||
return path.join(self.srcdir, docname) + suffix
|
return path.join(self.srcdir, docname) + suffix
|
||||||
elif base is None:
|
elif base is None:
|
||||||
|
@ -603,7 +603,7 @@ def process_generate_options(app):
|
|||||||
|
|
||||||
from sphinx.ext.autosummary.generate import generate_autosummary_docs
|
from sphinx.ext.autosummary.generate import generate_autosummary_docs
|
||||||
|
|
||||||
ext = app.config.source_suffix.keys()
|
ext = list(app.config.source_suffix)
|
||||||
genfiles = [genfile + (not genfile.endswith(tuple(ext)) and ext[0] or '')
|
genfiles = [genfile + (not genfile.endswith(tuple(ext)) and ext[0] or '')
|
||||||
for genfile in genfiles]
|
for genfile in genfiles]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user