Re: [PATCH 216/216] Use sphinx.version_info directly instead of parsing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 20.03.2017 um 16:11 schrieb Jani Nikula <jani.nikula@xxxxxxxxxxxxxxx>:

>> # Get Sphinx version
>> -major, minor, patch = map(int, sphinx.__version__.split("."))
>> +major, minor, patch, _, _ = sphinx.version_info

Thanks! ... alternative, use only first three items of the
tuple. More stable, if there is a version with only
three items in the tuple:

 major, minor, patch = sphinx.version_info[:3]

-- Markus --


--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux