def _make_criterion_from_lists(includes, excludes):
    """
    Give a list of items to include and exclude,
    construct the corresponding TargetingCriterion

    @param includes: list
    @param excludes: list
    @return: TargetingCriterion|None
    """
    incl = TargetingCriterion(includes, TargetingCriterion.OPERATOR.OR)
    excl = TargetingCriterion(excludes, TargetingCriterion.OPERATOR.OR)
    if includes or excludes:
        return incl & (~excl)
    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/operator `and` -> `or`