def unneeded_files():
    for (job_, files) in self.dependencies[job].items():
        tempfiles = set((f for f in job_.expanded_output if is_temp(f)))
        (yield from filterfalse(partial(needed, job_), (tempfiles & files)))
    if ((not job.dynamic_output) and ((job not in self.targetjobs) or (job.rule.name == self.workflow.first_rule))):
        tempfiles = (f for f in job.expanded_output if (is_temp(f) and (f not in self.targetfiles)))
        (yield from filterfalse(partial(needed, job), tempfiles))
def unneeded_files():
    for (job_, files) in self.dependencies[job].items():
        tempfiles = set((f for f in job_.expanded_output if is_temp(f)))
        (yield from filterfalse(partial(needed, job_), (tempfiles & files)))
    if ((not job.dynamic_output) and ((job not in self.targetjobs) or (job.rule.name == self.workflow.first_rule))):
        tempfiles = (f for f in job.expanded_output if (is_temp(f) and (f not in self.targetfiles)))
        (yield from filterfalse(partial(needed, job), tempfiles))