def get_tox_env_from_version():
 version_info = sys.version_info[:2]
 try:
  return ACCEPTED_VERSIONS[version_info]
 except KeyError:
  raise EnvironmentError('Invalid Python version', version_info, 'Accepted versions are', sorted(ACCEPTED_VERSIONS.keys()))

def get_tox_env_from_version ( ) : version_info = sys . version_info [ : 2 ] try : return ACCEPTED_VERSIONS [ version_info ] except KeyError : raise EnvironmentError ( 'Invalid Python version' , version_info , 'Accepted versions are' , sorted ( ACCEPTED_VERSIONS . keys ( ) ) )
get tox environment from the current python version .