def _compat(self, config):
        """Process config and warn on each obsolete or deprecated entry."""
        for section, conf in config.items():
            if isinstance(conf, dict):
                for k in conf:
                    if k in self.obsolete:
                        warnings.warn(
                            '%r is obsolete. Use %r instead.\n'
                            'section: [%s]' % (k, self.obsolete[k], section),
                        )
                    elif k in self.deprecated:
                        warnings.warn(
                            '%r is deprecated. Use %r instead.\n'
                            'section: [%s]' % (k, self.deprecated[k], section),
                        )
            else:
                if section in self.obsolete:
                    warnings.warn(
                        '%r is obsolete. Use %r instead.'
                        % (section, self.obsolete[section]),
                    )
                elif section in self.deprecated:
                    warnings.warn(
                        '%r is deprecated. Use %r instead.'
                        % (section, self.deprecated[section]),
                    )
Process config and warn on each obsolete or deprecated entry.
cherrypy/_cpchecker.py