OSDN Git Service

doc: Cope with Sphinx logging deprecations
authorJonathan Corbet <corbet@lwn.net>
Tue, 21 May 2019 20:23:43 +0000 (14:23 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Jun 2019 07:17:21 +0000 (09:17 +0200)
commit21158982f6b7c408c6e0fa90b6a26ceb983a4461
tree8c76a77ede4a9903892b4f90d2e06ac9b92e7ee2
parentc0742228bba633537f3d268275a4bdb93afbdc50
doc: Cope with Sphinx logging deprecations

commit 096ea522e84ea68f8e6c41e5e7294731a81e29bc upstream.

Recent versions of sphinx will emit messages like:

  Documentation/sphinx/kerneldoc.py:103:
     RemovedInSphinx20Warning: app.warning() is now deprecated.
     Use sphinx.util.logging instead.

Switch to sphinx.util.logging to make this unsightly message go away.
Alas, that interface was only added in version 1.6, so we have to add a
version check to keep things working with older sphinxes.

Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/sphinx/kerneldoc.py
Documentation/sphinx/kernellog.py [new file with mode: 0644]
Documentation/sphinx/kfigure.py