def diff_config(base, ref, exclude=None):
    diff = ConfigParser()

    if exclude is not None:
        exclude = set()

    for section in ref.sections():
        for option in ref.options(section):
            if (section, option) in exclude:
                continue
            value = ref.get(section, option)
            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/operator `is` -> `is not`