From 4e152b517114c50f3a0d1e3b14509dc043d43e60 Mon Sep 17 00:00:00 2001 From: "g@localhost.localdomain" Date: Wed, 21 Feb 2007 00:26:59 +0100 Subject: [PATCH] Optimization --- pysize/core/pysize_fs_tree.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pysize/core/pysize_fs_tree.py b/pysize/core/pysize_fs_tree.py index fe56ad8..d05423b 100644 --- a/pysize/core/pysize_fs_tree.py +++ b/pysize/core/pysize_fs_tree.py @@ -84,5 +84,4 @@ class pysize_tree(object): def breadth_first(self): """Iterate over the nodes in breadth first order.""" - for n in _breadth_first(self.root, lambda c: c.children): - yield n + return _breadth_first(self.root, lambda c: c.children) -- 2.11.4.GIT