"""Show python and pip versions."""

import os
import sys

try:
    import pip
except ImportError:
    pip = None

print('.'.join(u'%s' % i for i in sys.version_info))

if pip:
    print('pip %s from %s' % (pip.__version__, os.path.dirname(pip.__file__)))

"""Show python and pip versions."""

import os
import sys

try:
    import pip
except ImportError:
    pip = None

print(sys.version)

if pip:
    print('pip %s from %s' % (pip.__version__, os.path.dirname(pip.__file__)))

Revert "Relax ansible-test python version checking."
Revert "Relax ansible-test python version checking."

This reverts commit d6cc3c41874b64e346639549fd18d8c41be0db8b.

  """Show python and pip versions."""
  
  import os
  import sys
  
  try:
      import pip
  except ImportError:
      pip = None
  
- print('.'.join(u'%s' % i for i in sys.version_info))
+ print(sys.version)
  
  if pip:
      print('pip %s from %s' % (pip.__version__, os.path.dirname(pip.__file__)))
  
Revert "Relax ansible-test python version checking."
## Code Before:
"""Show python and pip versions."""

import os
import sys

try:
    import pip
except ImportError:
    pip = None

print('.'.join(u'%s' % i for i in sys.version_info))

if pip:
    print('pip %s from %s' % (pip.__version__, os.path.dirname(pip.__file__)))

## Instruction:
Revert "Relax ansible-test python version checking."
## Code After:
"""Show python and pip versions."""

import os
import sys

try:
    import pip
except ImportError:
    pip = None

print(sys.version)

if pip:
    print('pip %s from %s' % (pip.__version__, os.path.dirname(pip.__file__)))
