mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Don't import obsolete Directive class from Sphinx
Directive was apparently removed from Sphinx and made part of docutils. For some reason, in this saltdomain extension, we were importing both from docutils and sphinx. This worked well enough while Directive was still only deprecated, but it appears to recently have been removed, meaning that it now just causes an ImportError. This commit removes the redundant import.
This commit is contained in:
parent
e5f97cdce0
commit
c34690e509
@ -7,7 +7,7 @@ from docutils.parsers.rst import Directive
|
|||||||
|
|
||||||
from docutils.statemachine import ViewList
|
from docutils.statemachine import ViewList
|
||||||
from sphinx import addnodes
|
from sphinx import addnodes
|
||||||
from sphinx.directives import ObjectDescription, Directive
|
from sphinx.directives import ObjectDescription
|
||||||
from sphinx.domains import Domain, ObjType
|
from sphinx.domains import Domain, ObjType
|
||||||
from sphinx.domains.python import PyObject
|
from sphinx.domains.python import PyObject
|
||||||
from sphinx.locale import l_, _
|
from sphinx.locale import l_, _
|
||||||
|
Loading…
Reference in New Issue
Block a user