def IsEqual(version, major, minor, revision):
  if version is None:
    return False

  if revision is None:
    current_major, current_minor, _ = version
    return (current_major, current_minor) == (major, minor)

  return version == (major, minor, revision)
If a non-existant URL is accessed, cache this result as well.
dataset/ETHPy150Open ganeti/ganeti/lib/utils/version.py/IsEqual--crossover with--dataset/ETHPy150Open aehlke/manabi/apps/dojango/appengine/memcache_zipserve.py/MemcachedZipHandler.StoreInNegativeCache