def IsBefore(version, major, minor, revision):
  if version is None:
    return True

  return version < (major, minor, revision)
Decide if a given version is strictly before a given version.
dataset/ETHPy150Open ganeti/ganeti/lib/utils/version.py/IsBefore