[Python-checkins] r62184 - doctools/trunk/sphinx/environment.py
georg.brandl
python-checkins at python.org
Sun Apr 6 15:32:16 CEST 2008
Author: georg.brandl
Date: Sun Apr 6 15:32:15 2008
New Revision: 62184
Modified:
doctools/trunk/sphinx/environment.py
Log:
Fix the case where a toctree doesn't contain anything.
Modified: doctools/trunk/sphinx/environment.py
==============================================================================
--- doctools/trunk/sphinx/environment.py (original)
+++ doctools/trunk/sphinx/environment.py Sun Apr 6 15:32:15 2008
@@ -722,7 +722,7 @@
entries.append(toc)
if entries:
return addnodes.compact_paragraph('', '', *entries)
- return None
+ return []
def _walk_depth(node, depth, maxdepth, titleoverrides):
"""Utility: Cut a TOC at a specified depth."""
More information about the Python-checkins
mailing list