summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-01-04 11:46:49 +0400
committerThomas Huth <thuth@redhat.com>2022-01-05 11:10:13 +0100
commit9a50594761b4e329dc01cdd072c573a19e105775 (patch)
tree33452d0aceb7cdbd8c5e5e8033bee8a35d5cf78a
parentfe86fe237ccfe447db3a28db90d02ace47cf8c8a (diff)
downloadfocaccia-qemu-9a50594761b4e329dc01cdd072c573a19e105775.tar.gz
focaccia-qemu-9a50594761b4e329dc01cdd072c573a19e105775.zip
docs/sphinx: fix compatibility with sphinx < 1.8
SphinxDirective was added with sphinx 1.8 (2018-09-13).

Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220104074649.1712440-1-marcandre.lureau@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
-rw-r--r--docs/sphinx/fakedbusdoc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/sphinx/fakedbusdoc.py b/docs/sphinx/fakedbusdoc.py
index a680b25754..d2c5079046 100644
--- a/docs/sphinx/fakedbusdoc.py
+++ b/docs/sphinx/fakedbusdoc.py
@@ -7,12 +7,12 @@
 # Author: Marc-André Lureau <marcandre.lureau@redhat.com>
 """dbus-doc is a Sphinx extension that provides documentation from D-Bus XML."""
 
+from docutils.parsers.rst import Directive
 from sphinx.application import Sphinx
-from sphinx.util.docutils import SphinxDirective
 from typing import Any, Dict
 
 
-class FakeDBusDocDirective(SphinxDirective):
+class FakeDBusDocDirective(Directive):
     has_content = True
     required_arguments = 1