pyhandlers/handlers.py
def deprecation_warnings_handler(function):
    '''This is a decorator which can be used to ignore deprecation warnings occurring in a function.'''
    @wraps(function)
    def new_function(*args, **kwargs):
        with warnings.catch_warnings():
            warnings.filterwarnings("ignore", category=DeprecationWarning)
            return function(*args, **kwargs)
    return new_function
This is a decorator which can be used to ignore deprecation warnings occurring in a function.
This is a decorator which can be used to ignore deprecation warnings occurring in a function.
This is a decorator which can be used to ignore deprecation warnings occurring in a function .
def deprecation_warnings_handler(function):
    @wraps(function)
    def new_function(*args, **kwargs):
        with warnings.catch_warnings():
            warnings.filterwarnings("ignore", category=DeprecationWarning)
            return function(*args, **kwargs)
    return new_function
def deprecation_warnings_handler ( function ) : @ wraps ( function ) def new_function ( * args , ** kwargs ) : with warnings . catch_warnings ( ) : warnings . filterwarnings ( "ignore" , category = DeprecationWarning ) return function ( * args , ** kwargs ) return new_function
This is a decorator which can be used to ignore deprecation warnings occurring in a function.
This is a decorator which can be used to ignore deprecation warnings occurring in a function .
'''This is a decorator which can be used to ignore deprecation warnings occurring in a function.'''
function