def deprecated()

in pythonflow/util.py [0:0]


def deprecated(func):  # pragma: no cover
    """
    Mark a callable as deprecated.
    """
    def _wrapper(*args, **kwargs):
        LOGGER.warning("%s is deprecated", func)
        return func(*args, **kwargs)
    return _wrapper