def deprecated(func):
    '''
    Function decorator to denote that a function shouldn't be used
    
    :param func: The function that is deprecated
    '''
    def new_func(*args, **kwargs):
        #logger.warn("Function \""+str(func.__name__)+"\" is deprecated and should not be used")
        return func(*args, **kwargs)   
    new_func.__name__ = func.__name__
    if func.__doc__ is not None:
        new_func.__doc__ = '''*Deprecated*\n%s'''%func.__doc__
    else:
        new_func.__doc__ = '''*Deprecated*'''
    new_func.__dict__.update(func.__dict__)
    return new_func

    Function decorator to denote that a function shouldn't be used
    
    :param func: The function that is deprecated
    
utilities/misc.py