

def changed_target_addresses(self):
    'Find changed targets, according to SCM.\n\n    This is the intended entry point for finding changed targets unless callers have a specific\n    reason to call one of the above internal helpers. It will find changed targets and:\n      - Optionally find changes in a given diffspec (commit, branch, tag, range, etc).\n      - Optionally include direct or transitive dependees.\n      - Optionally filter targets matching exclude_target_regexp.\n\n    :returns: A set of target addresses.\n    '
    changed = self._find_changed_targets()
    excludes = [re.compile(pattern) for pattern in self._exclude_target_regexp]
    return set([t for t in changed if (not any(((exclude.search(t.spec) is not None) for exclude in excludes)))])

dataset/ETHPy150Open pantsbuild/pants/src/python/pants/task/changed_file_task_mixin.py ChangeCalculator.changed_target_addresses/original