

def _CheckSQLite3():
    'Checks the availability of sqlite3.\n\n  Returns:\n    True if the sqlite3 Python module is available, False otherwise.\n  '
    module_name = 'pysqlite2.dbapi2'
    minimum_version = '3.7.8'
    module_object = _ImportPythonModule(module_name)
    if (not module_object):
        module_name = 'sqlite3'
    module_object = _ImportPythonModule(module_name)
    if (not module_object):
        print('[FAILURE]\tmissing: {0:s}.'.format(module_name))
        return False
    module_version = getattr(module_object, 'sqlite_version', None)
    if (not module_version):
        return False
    module_version_map = list(map(int, _VERSION_SPLIT_REGEX.split(module_version)))
    minimum_version_map = list(map(int, _VERSION_SPLIT_REGEX.split(minimum_version)))
    if (module_version_map < minimum_version_map):
        print('[FAILURE]\t{0:s} version: {1:s} is too old, {2:s} or later required.'.format(module_name, module_version, minimum_version))
        return False
    return True

dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/dependencies.py _CheckSQLite3/original