def check_version(ver, minimal = [0, 0, 0, 0], maximal = None):
    if ver is None:
        return False
    if ver < minimal:
        return False
    if maximal and ver >= maximal:
        return False
    return True
dataset/ETHPy150Open SublimeHaskell/SublimeHaskell/hsdev.py/check_version/original