def deprecated(func):

    @wraps(func)
    def wrapper(*args, **kwargs):
        msg = "'{}' is deprecated".format(func.__name__)
        warnings.warn(msg, category=DeprecationWarning, stacklevel=2)
        return func(*args, **kwargs)

    return wrapper
Initialize the configurator.
dataset/ETHPy150Open kashifrazzaqui/vyked/vyked/utils/decorators.py/deprecated--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/configurator.py/Configurator.__init__