From 303481bd868d11cbc9d25e618bdef4fad8fa6e53 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 19 Feb 2009 23:17:34 +0100 Subject: [PATCH] But maybe this time it works! --- sphinx/util/compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/util/compat.py b/sphinx/util/compat.py index 3ef3debd8..c00f9d4ec 100644 --- a/sphinx/util/compat.py +++ b/sphinx/util/compat.py @@ -73,7 +73,7 @@ except ImportError: class or function. For that, we need to convert classes to a function for docutils 0.4. """ - if isinstance(obj, Directive): + if isinstance(obj, type) and issubclass(obj, Directive): def _class_directive(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine):