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_up(self, root=None):
"""Walk through each each node - post-order depth-first"""
if root is None:
root = self.root
return walk_up_tree(root)
def walk_up(self):
"""Walk through this node and its children - post-order depth-first"""
return walk_up_tree(self)
def walk_up(self, root=None):
if root is None:
root = self.control_root
return walk_up_tree(root)