From ea1eac882bb2c5dfc02ccaef3e713be27a788999 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 12 Jan 2014 22:34:27 +0100 Subject: Closes #1261: Python 3 cannot sort None and str types, make everything a str. --- sphinx/ext/autosummary/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sphinx') diff --git a/sphinx/ext/autosummary/generate.py b/sphinx/ext/autosummary/generate.py index 00d59f81..f45aa085 100644 --- a/sphinx/ext/autosummary/generate.py +++ b/sphinx/ext/autosummary/generate.py @@ -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 -- cgit v1.2.1