summaryrefslogtreecommitdiffstats
path: root/doc/exts/xmlschema.py
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2018-02-23 18:32:20 +0100
committerSol Jerome <sol.jerome@gmail.com>2018-03-22 13:25:14 -0500
commit37a4a44da54bce59027e592444837af8acf9ca33 (patch)
tree8fb854ff812cf0731fa74a48545276cf9f9f3559 /doc/exts/xmlschema.py
parentbfee224fc9cac82f7718ce85adb97d48048b1902 (diff)
downloadbcfg2-37a4a44da54bce59027e592444837af8acf9ca33.tar.gz
bcfg2-37a4a44da54bce59027e592444837af8acf9ca33.tar.bz2
bcfg2-37a4a44da54bce59027e592444837af8acf9ca33.zip
doc: Remove support for docutils-0.4
The compat class from sphinx for "Directive" was deprecated and removed in the current sphinx version. So we should use the class from docutils directly. You will need at least docutils-0.5 (from 2008) to build the documentation.
Diffstat (limited to 'doc/exts/xmlschema.py')
-rw-r--r--doc/exts/xmlschema.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/exts/xmlschema.py b/doc/exts/xmlschema.py
index 89104c2a6..63ab6f489 100644
--- a/doc/exts/xmlschema.py
+++ b/doc/exts/xmlschema.py
@@ -70,10 +70,9 @@ import lxml.etree
from docutils import nodes
from sphinx import addnodes, roles
from docutils.statemachine import ViewList
-from docutils.parsers.rst import directives
+from docutils.parsers.rst import Directive, directives
from sphinx.util.nodes import make_refnode, split_explicit_title, \
nested_parse_with_titles
-from sphinx.util.compat import Directive
from sphinx.domains import ObjType, Domain
try: