Skip to content
Snippets Groups Projects
Commit 9a505947 authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Thomas Huth
Browse files

docs/sphinx: fix compatibility with sphinx < 1.8


SphinxDirective was added with sphinx 1.8 (2018-09-13).

Reported-by: default avatarThomas Huth <thuth@redhat.com>
Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
Tested-by: default avatarThomas Huth <thuth@redhat.com>
Message-Id: <20220104074649.1712440-1-marcandre.lureau@redhat.com>
Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
parent fe86fe23
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment