doit/cmd_clean.py
def clean_tasks(self, tasks, dryrun, cleanforget):
        """ensure task clean-action is executed only once"""
        cleaned = set()
        forget_tasks = cleanforget and not dryrun
        for task in tasks:
            if task.name not in cleaned:
                cleaned.add(task.name)
                task.clean(self.outstream, dryrun)
                if forget_tasks:
                    self.dep_manager.remove(task.name)

        self.dep_manager.close()
ensure task clean-action is executed only once
ensure task clean-action is executed only once
ensure task clean - action is executed only once
def clean_tasks(self, tasks, dryrun, cleanforget):
        cleaned = set()
        forget_tasks = cleanforget and not dryrun
        for task in tasks:
            if task.name not in cleaned:
                cleaned.add(task.name)
                task.clean(self.outstream, dryrun)
                if forget_tasks:
                    self.dep_manager.remove(task.name)
        self.dep_manager.close()
def clean_tasks ( self , tasks , dryrun , cleanforget ) : cleaned = set ( ) forget_tasks = cleanforget and not dryrun for task in tasks : if task . name not in cleaned : cleaned . add ( task . name ) task . clean ( self . outstream , dryrun ) if forget_tasks : self . dep_manager . remove ( task . name ) self . dep_manager . close ( )
ensure task clean-action is executed only once
ensure task clean - action is executed only once
"""ensure task clean-action is executed only once"""
self
tasks
dryrun
cleanforget