Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def walk(self, root=None):
if root is None:
root = self.control_root
return walk_tree(root)
def walk(self):
"""Walk through this node and its children - pre-order depth-first"""
return walk_tree(self)
def group_tasks(self):
"""All tasks in the hierarchy, affected by this group."""
tasks = set()
for node in walk_tree(self):
for ctrl in node.controllers.values():
tasks.update(ctrl.tasks)
return tasks
def walk(self, root=None):
"""Walk through each each node - pre-order depth-first"""
if root is None:
root = self.root
return walk_tree(root)