Use sip.SIP_VERSION_STR to get sip version.
This commit is contained in:
parent
7daf1cb239
commit
f1c0781a4c
@ -127,18 +127,8 @@ def _module_versions():
|
|||||||
A list of lines with version info.
|
A list of lines with version info.
|
||||||
"""
|
"""
|
||||||
lines = []
|
lines = []
|
||||||
try:
|
|
||||||
import sipconfig # pylint: disable=import-error,unused-variable
|
|
||||||
except ImportError:
|
|
||||||
lines.append('SIP: ?')
|
|
||||||
else:
|
|
||||||
try:
|
|
||||||
lines.append('SIP: {}'.format(
|
|
||||||
sipconfig.Configuration().sip_version_str))
|
|
||||||
except (AttributeError, TypeError):
|
|
||||||
log.misc.exception("Error while getting SIP version")
|
|
||||||
lines.append('SIP: ?')
|
|
||||||
modules = collections.OrderedDict([
|
modules = collections.OrderedDict([
|
||||||
|
('sip', ['SIP_VERSION_STR']),
|
||||||
('colorlog', []),
|
('colorlog', []),
|
||||||
('colorama', ['VERSION', '__version__']),
|
('colorama', ['VERSION', '__version__']),
|
||||||
('pypeg2', ['__version__']),
|
('pypeg2', ['__version__']),
|
||||||
|
Loading…
Reference in New Issue
Block a user