def deprecated():

    def decorator_func(func):
        @wraps(func)
        def decorated_func(*args, **kwargs):
            warnings.simplefilter('always', DeprecationWarning)
            warnings.warn("Function is deprecated %s" % obj_full_name(func),
                          category=DeprecationWarning)
            return func(*args, **kwargs)
        return decorated_func
    return decorator_func
Decorator for deprecated functions.
dataset/ETHPy150Open smsapi/smsapi-python-client/smsapi/decorators.py/deprecated