def deprecated(use_instead=None):

    def deco(func):
        @wraps(func)
        def wrapped(*args, **kwargs):
            message = "Call to deprecated function %s." % func.__name__
            if use_instead:
                message += " Use %s instead." % use_instead
            warnings.warn(message, category=ScrapyDeprecationWarning, stacklevel=2)
            return func(*args, **kwargs)
        return wrapped

    if callable(use_instead):
        deco = deco(use_instead)
        use_instead = None
    return deco
Print information for a particular virtual machine or recurse into a
dataset/ETHPy150Open wcong/ants/ants/utils/decorator.py/deprecated--crossover with--dataset/ETHPy150Open vmware/pyvmomi-community-samples/samples/getallvms.py/print_vm_info