Make our SUFFIX default selection py2/3 compatible (#5251)

ghowardsit
Manuel Kaufmann 2019-02-07 20:51:24 +01:00 committed by Anthony
parent 87a2b0e799
commit 9ecd70c716
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ if globals().get('source_suffix', False):
SUFFIX = source_suffix[0]
elif isinstance(source_suffix, dict):
# Sphinx >= 1.8 supports a mapping dictionary for mulitple suffixes
SUFFIX = source_suffix.keys()[0]
SUFFIX = list(source_suffix.keys())[0] # make a ``list()`` for py2/py3 compatibility
else:
# default to .rst
SUFFIX = '.rst'