[Python-checkins] r64335 - doctools/trunk/sphinx/ext/autodoc.py

georg.brandl python-checkins at python.org
Tue Jun 17 12:33:19 CEST 2008


Author: georg.brandl
Date: Tue Jun 17 12:33:19 2008
New Revision: 64335
Log:
Fix unbound local.
Modified:
 doctools/trunk/sphinx/ext/autodoc.py
Modified: doctools/trunk/sphinx/ext/autodoc.py
==============================================================================
--- doctools/trunk/sphinx/ext/autodoc.py	(original)
+++ doctools/trunk/sphinx/ext/autodoc.py	Tue Jun 17 12:33:19 2008
@@ -134,7 +134,7 @@
 docstrings.append(obj.__doc__)
 # skip some lines in module docstrings if configured
 if what == 'module' and env.config.automodule_skip_lines and docstrings:
- docstrings[0] = '\n'.join(docstring.splitlines()
+ docstrings[0] = '\n'.join(docstrings[0].splitlines()
 [env.config.automodule_skip_lines:])
 # for classes, what the "docstring" is can be controlled via an option
 if what in ('class', 'exception'):


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /