3f2b766d10
Continue to ignore: - test/integration/ - test/legacy/ - test/units/
21 lines
367 B
Python
Executable file
21 lines
367 B
Python
Executable file
#!/usr/bin/env python
|
|
"""Show python and pip versions."""
|
|
from __future__ import (absolute_import, division, print_function)
|
|
__metaclass__ = type
|
|
|
|
import json
|
|
|
|
try:
|
|
import yaml
|
|
except ImportError:
|
|
yaml = None
|
|
|
|
try:
|
|
from yaml import CLoader
|
|
except ImportError:
|
|
CLoader = None
|
|
|
|
print(json.dumps(dict(
|
|
yaml=bool(yaml),
|
|
cloader=bool(CLoader),
|
|
)))
|