mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Closes #1261: Python 3 cannot sort None and str types, make everything a str.
This commit is contained in:
parent
574a7962e8
commit
31de96330d
@ -116,7 +116,7 @@ def generate_autosummary_docs(sources, output_dir=None, suffix='.rst',
|
||||
new_files = []
|
||||
|
||||
# write
|
||||
for name, path, template_name in sorted(items):
|
||||
for name, path, template_name in sorted(items, key=str):
|
||||
if path is None:
|
||||
# The corresponding autosummary:: directive did not have
|
||||
# a :toctree: option
|
||||
|
Loading…
Reference in New Issue
Block a user