Python six.__version__() Examples
The following are 1
code examples of six.__version__().
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
six
, or try the search function
.
Example #1
Source File: test.py From recipes-py with Apache License 2.0 | 6 votes |
def main(): parser = argparse.ArgumentParser() parser.add_argument('--verify-enum34', action='store_true') parser.add_argument('--verify-six', action='store_true') opts = parser.parse_args() if opts.verify_enum34: import enum assert enum.version == (1, 1, 6) if opts.verify_six: import six assert six.__version__ == '1.10.0' try: # ensure that the recipe_engine .vpython env doesn't leak through import requests # pylint: disable=unused-variable assert False, "recipe engine .vpython env leaked through!" except ImportError: pass return 0