def __call__(self, method):
        """
        Applies the modifications

        :param method: The decorated method
        :return: The wrapped method
        """
        # Prepare the wrapped call
        @functools.wraps(method)
        def wrapped(*args, **kwargs):
            """
            Wrapped deprecated method
            """
            self.__log(method.__name__)
            return method(*args, **kwargs)

        return wrapped
def __call__ ( self , method ) : @ functools . wraps ( method ) def wrapped ( * args , ** kwargs ) : self . __log ( method . __name__ ) return method ( * args , ** kwargs ) return wrapped
Applies the modifications

        :param method: The decorated method
        :return: The wrapped method