def _stale_param_handler(input):
    if input in (STALE_UPDATE_AFTER, STALE_OK, STALE_UPDATE_BEFORE):
        return input

    ret = _bool_param_handler(input)
    if ret == "true":
        ret = STALE_OK
    return ret
dataset/ETHPy150Open couchbase/couchbase-python-client/couchbase/views/params.py/_stale_param_handler/original