INNER CODE UNIT · Python

deprecated

demining/CryptoDeepTools · 17BTCRecoverCryptoGuide/lib/bitcoinlib/main.py:106

def deprecated(func):
    """This is a decorator which can be used to mark functions
    as deprecated. It will result in a warning being emitted
    when the function is used."""

    @functools.wraps(func)
    def new_func(*args, **kwargs):
        logging.warning("Call to deprecated function {}.".format(func.__name__))
        return func(*args, **kwargs)
    return new_func

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…