sys.subversion unavailable in py24. Fixes #14704
This commit is contained in:
parent
f99ed97c40
commit
e27eb73cba
1 changed files with 4 additions and 1 deletions
|
@ -808,9 +808,12 @@ class Facts(object):
|
|||
},
|
||||
'version_info': list(sys.version_info),
|
||||
'executable': sys.executable,
|
||||
'type': sys.subversion[0],
|
||||
'has_sslcontext': HAS_SSLCONTEXT
|
||||
}
|
||||
try:
|
||||
self.facts['python']['type'] = sys.subversion[0]
|
||||
except AttributeError:
|
||||
self.facts['python']['type'] = None
|
||||
|
||||
|
||||
class Hardware(Facts):
|
||||
|
|
Loading…
Reference in a new issue