sys.subversion unavailable in py24. Fixes #14704

This commit is contained in:
Matt Martz 2016-02-29 09:05:48 -06:00
parent f99ed97c40
commit e27eb73cba

View file

@ -808,9 +808,12 @@ class Facts(object):
}, },
'version_info': list(sys.version_info), 'version_info': list(sys.version_info),
'executable': sys.executable, 'executable': sys.executable,
'type': sys.subversion[0],
'has_sslcontext': HAS_SSLCONTEXT 'has_sslcontext': HAS_SSLCONTEXT
} }
try:
self.facts['python']['type'] = sys.subversion[0]
except AttributeError:
self.facts['python']['type'] = None
class Hardware(Facts): class Hardware(Facts):