def _make_assure_kludge(fn):
    old_name = fn.__name__.replace('ensure', 'assure')

    @wraps(fn)
    def compat_fn(*args, **kwargs):
        warnings.warn('{} is deprecated and will be removed in a future release. Use {} instead.'.format(old_name, fn.__name__), DeprecationWarning)
        return fn(*args, **kwargs)
    compat_fn.__doc__ = 'Note: This function is deprecated. Use {} instead.'.format(fn.__name__)
    return compat_fn
def _make_assure_kludge(fn):
    old_name = fn.__name__.replace('ensure', 'assure')

    @wraps(fn)
    def compat_fn(*args, **kwargs):
        warnings.warn('{} is deprecated and will be removed in a future release. Use {} instead.'.format(old_name, fn.__name__), DeprecationWarning)
        return fn(*args, **kwargs)
    compat_fn.__doc__ = 'Note: This function is deprecated. Use {} instead.'.format(fn.__name__)
    return compat_fn