def deprecated(msg, *args, **kwds):
    _compute_action()
    if (ACTION == 'ignore'):
        return
    if ((ACTION == 'warn_once') and (msg in DEPRECATED)):
        return
    formatted = msg.format(*args, **kwds)
    if (ACTION == 'fail'):
        raise ValueError(formatted)
    DEPRECATED.add(msg)
    from . import log
    log.warning(formatted)
def deprecated(msg, *args, **kwds):
    _compute_action()
    if (ACTION == 'ignore'):
        return
    if ((ACTION == 'warn_once') and (msg in DEPRECATED)):
        return
    formatted = msg.format(*args, **kwds)
    if (ACTION == 'fail'):
        raise ValueError(formatted)
    DEPRECATED.add(msg)
    from . import log
    log.warning(formatted)