diff options
author | Jonathan Corbet <corbet@lwn.net> | 2023-12-09 02:10:17 +0300 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2023-12-15 18:36:33 +0300 |
commit | 3e893e16af55eeeca8faebabcb36fe78c854ba21 (patch) | |
tree | 88c258a4c2ee11dc9413d193acc96397d7b3676b /Documentation/sphinx/kfigure.py | |
parent | 50709576d81bbcbe027d22c64cd2ec934bd9087b (diff) | |
download | linux-3e893e16af55eeeca8faebabcb36fe78c854ba21.tar.xz |
docs: Raise the minimum Sphinx requirement to 2.4.4
Commit 31abfdda6527 (docs: Deprecate use of Sphinx < 2.4.x) in 6.2 added a
warning that support for older versions of Sphinx would be going away.
There have been no complaints, so the time has come. Raise the minimum
Sphinx version to 2.4.4 and clean out some compatibility code that we no
longer need.
Reviewed-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Link: https://lore.kernel.org/r/874jgs47fq.fsf@meer.lwn.net
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/sphinx/kfigure.py')
-rw-r--r-- | Documentation/sphinx/kfigure.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Documentation/sphinx/kfigure.py b/Documentation/sphinx/kfigure.py index 13e885bbd499..97166333b727 100644 --- a/Documentation/sphinx/kfigure.py +++ b/Documentation/sphinx/kfigure.py @@ -61,13 +61,7 @@ import sphinx from sphinx.util.nodes import clean_astext import kernellog -# Get Sphinx version -major, minor, patch = sphinx.version_info[:3] -if major == 1 and minor > 3: - # patches.Figure only landed in Sphinx 1.4 - from sphinx.directives.patches import Figure # pylint: disable=C0413 -else: - Figure = images.Figure +Figure = images.Figure __version__ = '1.0.0' |