But maybe this time it works!

This commit is contained in:
Georg Brandl 2009-02-19 23:17:34 +01:00
parent 30e56ca544
commit 303481bd86

View File

@ -73,7 +73,7 @@ except ImportError:
class or function. For that, we need to convert classes to a class or function. For that, we need to convert classes to a
function for docutils 0.4. function for docutils 0.4.
""" """
if isinstance(obj, Directive): if isinstance(obj, type) and issubclass(obj, Directive):
def _class_directive(name, arguments, options, content, def _class_directive(name, arguments, options, content,
lineno, content_offset, block_text, lineno, content_offset, block_text,
state, state_machine): state, state_machine):