def _postprocess(ignores):
    pull = ignores.pop('pull', [])
    push = ignores.pop('push', [])
    both = ignores.pop('both', [])
    if ignores:
        raise ConfigurationError(f"{IGNORE_FILE_NAME} file has unexpected sections: {', '.join(ignores.keys())}. Please remove them")
    return SyncRules(pull=pull, push=push, both=both)
def _postprocess(ignores):
    pull = ignores.pop('pull', [])
    push = ignores.pop('push', [])
    both = ignores.pop('both', [])
    if ignores:
        raise ConfigurationError(f"{IGNORE_FILE_NAME} file has unexpected sections: {', '.join(ignores.keys())}. Please remove them")
    return SyncRules(pull=pull, push=push, both=both)