From 8e2e2c225e9efc359d726fd2c863ae24f7cb919c Mon Sep 17 00:00:00 2001 From: "g@localhost.localdomain" Date: Wed, 21 Feb 2007 00:26:18 +0100 Subject: [PATCH] cleanup --- pysize/core/pysize_fs_tree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pysize/core/pysize_fs_tree.py b/pysize/core/pysize_fs_tree.py index 05d237f..fe56ad8 100644 --- a/pysize/core/pysize_fs_tree.py +++ b/pysize/core/pysize_fs_tree.py @@ -56,7 +56,7 @@ class pysize_tree(object): def get_next_sibling(self, node): """Return the next pysize_node in node's level.""" is_next = False - for child in _breadth_first(self.root, lambda c: c.children): + for child in self.breadth_first(): if is_next: if child.compute_depth() == node.compute_depth(): return child @@ -66,7 +66,7 @@ class pysize_tree(object): def get_previous_sibling(self, node): """Return the previous pysize_node in node's level.""" prev = None - for child in _breadth_first(self.root, lambda c: c.children): + for child in self.breadth_first(): if child == node: if prev.compute_depth() == node.compute_depth(): return prev -- 2.11.4.GIT