Skip to content

Commit

Permalink
Make our SUFFIX default selection py2/3 compatible (#5251)
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos authored and agjohnson committed Feb 7, 2019
1 parent 87a2b0e commit 9ecd70c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readthedocs/doc_builder/templates/doc_builder/conf.py.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 9ecd70c

Please sign in to comment.