def __call__(self, function):
        """ call to setup parameter

        Basically here, we will only decorate the function, so if deprecation
        point is reach, raise immediately, otherwise just decorate the function
        to have a warning on function call.

        we might still have to adjust the stacklevel..

        """

        if self._pysupport and self._pyremove:
            if self._pysupport > self._pyremove :
                raise DeprecationWarning("this can be removed")

        if self._deprecation_reached :
            self._on_deprecation_reached()

        def _inner(*arg, **kwarg):
            self._on_deprecation_pending()
            return function(*arg, **kwarg)

        return _inner
def __call__ ( self , function ) : if self . _pysupport and self . _pyremove : if self . _pysupport > self . _pyremove : raise DeprecationWarning ( "this can be removed" ) if self . _deprecation_reached : self . _on_deprecation_reached ( ) def _inner ( * arg , ** kwarg ) : self . _on_deprecation_pending ( ) return function ( * arg , ** kwarg ) return _inner
call to setup parameter

        Basically here, we will only decorate the function, so if deprecation
        point is reach, raise immediately, otherwise just decorate the function
        to have a warning on function call.

        we might still have to adjust the stacklevel..