

def diff_config(base, ref, exclude=None):
    diff = ConfigParser()
    if (exclude is None):
        exclude = set()
    for section in ref.sections():
        for option in ref.options(section):
            if ((section, option) in exclude):
                continue
            value = ref.get(section, value)
            if base.has_option(section, option):
                if (base.get(section, option) == value):
                    continue
            if (not diff.has_section(section)):
                diff.add_section(section)
            diff.set(section, option, value)
    return diff

dataset/ETHPy150Open GaretJax/lancet/lancet/settings.py diff_config/VarMisuse@85/92 `option`->`value`