#3498: fix unbound local.

This commit is contained in:
Georg Brandl 2008-08-04 12:54:15 +00:00
parent 97558dcc06
commit 55c4faa3e2

View File

@ -310,7 +310,7 @@ class RstGenerator(object):
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