

def valid_api_version(version):
    ' Checks if the requested version is valid.\n\n    Currently Swift only supports "v1" and "v1.0". '
    global VALID_API_VERSIONS
    if (not isinstance(VALID_API_VERSIONS, list)):
        VALID_API_VERSIONS = [str(VALID_API_VERSIONS)]
    return (version in VALID_API_VERSIONS)

dataset/ETHPy150Open openstack/swift/swift/common/constraints.py valid_api_version/original