

def _find_changed_targets(self):
    changed = self._directly_changed_targets()
    if (not changed):
        return changed
    if (self._include_dependees == 'none'):
        return changed
    for address in self._address_mapper.scan_addresses():
        self._build_graph.inject_address_closure(address)
    if (self._include_dependees == 'direct'):
        return changed.union(*[self._build_graph.dependents_of(addr) for addr in changed])
    if (self._include_dependees == 'transitive'):
        return set((t.address for t in self._build_graph.transitive_dependees_of_addresses(changed)))
    raise ValueError('Unknown dependee inclusion: "{}"'.format(self._include_dependees))

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