def validate_api_version(version):
 if (float(version) < legacy_api.MIN_VERSION):
  return False
 if (float(version) > legacy_api.MAX_VERSION):
  return False
 return True

def validate_api_version ( version ) : if ( float ( version ) < legacy_api . MIN_VERSION ) : return False if ( float ( version ) > legacy_api . MAX_VERSION ) : return False return True
we want to be able to deprecate old versions of the api .