

def retry(**kwargs):
    delay = kwargs.get('stop_max_delay', None)
    kwargs['stop_max_delay'] = (delay if (delay not in (True, False)) else None)
    k = RETRYING_KWARGS.copy()
    k.update(kwargs)
    return retrying.retry(**k)

dataset/ETHPy150Open openstack/tooz/tooz/drivers/_retry.py retry/original