From: Marc-André Lureau Date: Tue, 4 Jan 2022 07:46:49 +0000 (+0400) Subject: docs/sphinx: fix compatibility with sphinx < 1.8 X-Git-Tag: v7.0.0-rc0~105^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9a50594761b4e329dc01cdd072c573a19e105775;p=thirdparty%2Fqemu.git docs/sphinx: fix compatibility with sphinx < 1.8 SphinxDirective was added with sphinx 1.8 (2018-09-13). Reported-by: Thomas Huth Signed-off-by: Marc-André Lureau Tested-by: Thomas Huth Message-Id: <20220104074649.1712440-1-marcandre.lureau@redhat.com> Signed-off-by: Thomas Huth --- diff --git a/docs/sphinx/fakedbusdoc.py b/docs/sphinx/fakedbusdoc.py index a680b257547..d2c50790465 100644 --- a/docs/sphinx/fakedbusdoc.py +++ b/docs/sphinx/fakedbusdoc.py @@ -7,12 +7,12 @@ # Author: Marc-André Lureau """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