doit/cmd_clean.py
def build_nodes(self, tasks, clean_list):
        """build nodes with sub-tasks but no other task_dep"""
        for name in clean_list:
            # add node itself if not in list of nodes
            self.nodes.setdefault(name, [])
            task = tasks[name]
            # reversing not required
            for dep_name in reversed(task.task_dep):
                if tasks[dep_name].subtask_of == name:
                    rev_dep = self.nodes.setdefault(dep_name, [])
                    rev_dep.append(name)
build nodes with sub-tasks but no other task_dep
build nodes with sub-tasks but no other task_dep
build nodes with sub - tasks but no other task_dep
def build_nodes(self, tasks, clean_list):
        for name in clean_list:
            self.nodes.setdefault(name, [])
            task = tasks[name]
            for dep_name in reversed(task.task_dep):
                if tasks[dep_name].subtask_of == name:
                    rev_dep = self.nodes.setdefault(dep_name, [])
                    rev_dep.append(name)
def build_nodes ( self , tasks , clean_list ) : for name in clean_list : self . nodes . setdefault ( name , [ ] ) task = tasks [ name ] for dep_name in reversed ( task . task_dep ) : if tasks [ dep_name ] . subtask_of == name : rev_dep = self . nodes . setdefault ( dep_name , [ ] ) rev_dep . append ( name )
build nodes with sub-tasks but no other task_dep
build nodes with sub - tasks but no other task_dep
"""build nodes with sub-tasks but no other task_dep""" # add node itself if not in list of nodes # reversing not required
self
tasks
clean_list