summaryrefslogtreecommitdiffstats
path: root/Documentation/sphinx
diff options
context:
space:
mode:
authorRémy Léone <remy.leone@gmail.com>2017-03-20 16:37:49 +0100
committerJonathan Corbet <corbet@lwn.net>2017-03-31 09:19:37 -0600
commitc46988aef2de6d290b7c5453d58f1293337aefaa (patch)
treee525b9e8fbc204333b11a11244e448a55d103c07 /Documentation/sphinx
parent036db11cab275dd3cc13284e760bb050c59559be (diff)
downloadlinux-stable-c46988aef2de6d290b7c5453d58f1293337aefaa.tar.gz
linux-stable-c46988aef2de6d290b7c5453d58f1293337aefaa.tar.bz2
linux-stable-c46988aef2de6d290b7c5453d58f1293337aefaa.zip
Use sphinx.version_info directly instead of parsing
Using the development version of sphinx caused the parsing of the version to fail. Signed-off-by: Rémy Léone <remy.leone@gmail.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/sphinx')
-rw-r--r--Documentation/sphinx/cdomain.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/sphinx/cdomain.py b/Documentation/sphinx/cdomain.py
index df0419c62096..cf13ff3a656c 100644
--- a/Documentation/sphinx/cdomain.py
+++ b/Documentation/sphinx/cdomain.py
@@ -44,7 +44,7 @@ from sphinx.domains.c import CDomain as Base_CDomain
__version__ = '1.0'
# Get Sphinx version
-major, minor, patch = map(int, sphinx.__version__.split("."))
+major, minor, patch = sphinx.version_info[:3]
def setup(app):