Python sys.version_info.micro() Examples
The following are 1
code examples of sys.version_info.micro().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
sys.version_info
, or try the search function
.
Example #1
Source File: vault.py From ansible-vault with BSD 3-Clause "New" or "Revised" License | 6 votes |
def _verify_python_version(self, key, cafile, capath, cahostverify): python_version_cur = ".".join([str(version_info.major), str(version_info.minor), str(version_info.micro)]) python_version_min = "2.7.9" if StrictVersion(python_version_cur) < StrictVersion(python_version_min): if cafile or capath: raise AnsibleError('Unable to read %s from vault:' ' Using Python %s, and vault lookup plugin requires at least %s' ' to use an SSL context (VAULT_CACERT or VAULT_CAPATH)' % (key, python_version_cur, python_version_min)) elif cahostverify: raise AnsibleError('Unable to read %s from vault:' ' Using Python %s, and vault lookup plugin requires at least %s' ' to verify Vault certificate. (set VAULT_CAHOSTVERIFY to \'%s\'' ' to disable certificate verification.)' % (key, python_version_cur, python_version_min, DISABLE_VAULT_CAHOSTVERIFY))