'Process config and warn on each obsolete or deprecated entry.'

def _compat(self, config):

    for (section, conf) in config.items():
        if isinstance(conf, dict):
            for (k, v) in conf.items():
                if (k in self.obsolete):
                    warnings.warn(('%r    is    obsolete.    Use    %r    instead.\nsection:    [%s]' % (k, self.obsolete[k], section)))
                elif (k in self.deprecated):
                    warnings.warn(('%r    is    deprecated.    Use    %r    instead.\nsection:    [%s]' % (k, self.deprecated[k], section)))
        elif (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])))
