mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
036db11cab
commit
c46988aef2
2 changed files with 3 additions and 3 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue