From c46988aef2de6d290b7c5453d58f1293337aefaa Mon Sep 17 00:00:00 2001 From: Rémy Léone Date: Mon, 20 Mar 2017 16:37:49 +0100 Subject: Use sphinx.version_info directly instead of parsing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using the development version of sphinx caused the parsing of the version to fail. Signed-off-by: Rémy Léone Signed-off-by: Jonathan Corbet --- Documentation/sphinx/cdomain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Documentation/sphinx/cdomain.py') 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): -- cgit v1.2.3