doc: Remove deprecated call to sphinx.util.compat
This call generates the following deprecation warning: RemovedInSphinx17Warning: sphinx.util.compat.Directive is deprecated and will be removed in Sphinx 1.7, please use docutils' instead. Resolve this. Change-Id: I73a182248a64d1e931a1bcb3989aa96f0aec71ed
This commit is contained in:
parent
b74115c2f5
commit
46a5569fb1
|
@ -21,16 +21,16 @@ It is used via a single directive in the .rst file
|
|||
"""
|
||||
|
||||
from docutils import nodes
|
||||
from docutils.parsers import rst
|
||||
import importlib
|
||||
import pkgutil
|
||||
from sphinx.util.compat import Directive
|
||||
|
||||
import nova.notifications.objects
|
||||
from nova.notifications.objects import base as notification
|
||||
from nova.objects import base
|
||||
|
||||
|
||||
class VersionedNotificationDirective(Directive):
|
||||
class VersionedNotificationDirective(rst.Directive):
|
||||
|
||||
SAMPLE_ROOT = 'doc/notification_samples/'
|
||||
TOGGLE_SCRIPT = """
|
||||
|
|
Loading…
Reference in New Issue