Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation/sphinx: Fix Directive import error

Sphinx 1.7 removed sphinx.util.compat.Directive so people
who have upgraded cannot build the documentation. Switch to
docutils.parsers.rst.Directive which has been available since
docutils 0.5 released in 2009.

Bugzilla: https://bugzilla.opensuse.org/show_bug.cgi?id=1083694
Co-developed-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Matthew Wilcox and committed by
Jonathan Corbet
ff690eee e6754825

+1 -2
+1 -2
Documentation/sphinx/kerneldoc.py
··· 36 36 37 37 from docutils import nodes, statemachine 38 38 from docutils.statemachine import ViewList 39 - from docutils.parsers.rst import directives 40 - from sphinx.util.compat import Directive 39 + from docutils.parsers.rst import directives, Directive 41 40 from sphinx.ext.autodoc import AutodocReporter 42 41 43 42 __version__ = '1.0'