Closes #1261: Python 3 cannot sort None and str types, make everything a str.

This commit is contained in:
Georg Brandl 2014-01-12 22:34:27 +01:00
parent 574a7962e8
commit 31de96330d

View File

@ -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