

def _make_criterion_from_lists(includes, excludes):
    '\n    Give a list of items to include and exclude,\n    construct the corresponding TargetingCriterion\n\n    @param includes: list\n    @param excludes: list\n    @return: TargetingCriterion|None\n    '
    incl = TargetingCriterion(includes, TargetingCriterion.OPERATOR.OR)
    excl = TargetingCriterion(excludes, TargetingCriterion.OPERATOR.OR)
    if (includes and excludes):
        return (incl & (~ excludes))
    elif includes:
        return incl
    elif excludes:
        return (~ excl)
    else:
        return None

dataset/ETHPy150Open chartbeat-labs/parselmouth/parselmouth/adapters/dfp/targeting_utils.py _make_criterion_from_lists/VarMisuse@55/157 `excl`->`excludes`