[Python-checkins] r65489 - doctools/trunk/sphinx/ext/autodoc.py
georg.brandl
python-checkins at python.org
Mon Aug 4 14:54:16 CEST 2008
Author: georg.brandl
Date: Mon Aug 4 14:54:15 2008
New Revision: 65489
Log:
#3498: 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 Mon Aug 4 14:54:15 2008
@@ -310,7 +310,7 @@
if hasattr(self.env, 'autodoc_current_class'):
mod_cls = self.env.autodoc_current_class
# ... or from a class directive
- if not mod_cls:
+ else:
mod_cls = self.env.currclass
mod, cls = rpartition(mod_cls, '.')
# if the module name is still missing, get it like above
More information about the Python-checkins
mailing list