Skip to content

Commit ae65042

Browse files
committed
sphinx 1.7.0 compatibility
1 parent 963155d commit ae65042

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/taglist.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525

2626
from docutils import nodes, utils
2727
from sphinx.environment import NoUri
28-
from sphinx.util.compat import Directive
28+
try:
29+
from sphinx.util.compat import Directive
30+
except ImportError:
31+
from docutils.parsers.rst import Directive
2932

3033

3134
def get_tags(s):

0 commit comments

Comments
 (0)