def _deprecated_config_handler(self, func, msg, **kw):
        """this function will wrap around parameters that are deprecated

        :param msg: deprecation message
        :param func: function to be wrapped around
        """

        @wraps(func)
        def config_handler(*args, **kwargs):
            kw.setdefault("stacklevel", 2)
            _DeprecatedConfig.emit("Deprecated config in `setup.cfg`", msg, **kw)
            return func(*args, **kwargs)

        return config_handler
this function will wrap around parameters that are deprecated

        :param msg: deprecation message
        :param func: function to be wrapped around
        
product/gradle-plugin/src/main/python/setuptools/config/setupcfg.py