From 46a5569fb1430169acebfe9a1e1cc44eb4a551f6 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 29 Aug 2017 15:12:10 +0100 Subject: 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 --- doc/ext/versioned_notifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/ext') diff --git a/doc/ext/versioned_notifications.py b/doc/ext/versioned_notifications.py index 64b3babba9..6daa64bacf 100644 --- a/doc/ext/versioned_notifications.py +++ b/doc/ext/versioned_notifications.py @@ -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 = """ -- cgit v1.2.1