()
Initial validations.
Initial validations.
Initial validations .
def _validate_version():
    """Initial validations."""
    # sys.version_info tuple's first three elements are guaranteed to be ints
    python_version = sys.version_info[:3]
    if (
            (python_version[0] == 2 and python_version < MIN_PYTHON2_VERSION) or
            (python_version[0] == 3 and python_version < MIN_PYTHON3_VERSION)
        ):
        msg = (
            'PC-BASIC requires Python version %d.%d.%d, ' % MIN_PYTHON2_VERSION +
            'version %d.%d.%d, or higher. ' % MIN_PYTHON3_VERSION +
            'You have %d.%d.%d.' % python_version
        )
        logging.fatal(msg)
        raise ImportError(msg)
def _validate_version ( ) : # sys.version_info tuple's first three elements are guaranteed to be ints python_version = sys . version_info [ : 3 ] if ( ( python_version [ 0 ] == 2 and python_version < MIN_PYTHON2_VERSION ) or ( python_version [ 0 ] == 3 and python_version < MIN_PYTHON3_VERSION ) ) : msg = ( 'PC-BASIC requires Python version %d.%d.%d, ' % MIN_PYTHON2_VERSION + 'version %d.%d.%d, or higher. ' % MIN_PYTHON3_VERSION + 'You have %d.%d.%d.' % python_version ) logging . fatal ( msg ) raise ImportError ( msg )