summaryrefslogtreecommitdiff
path: root/tree.py
diff options
context:
space:
mode:
authorsyt <syt@localhost.localdomain>2006-11-23 16:22:43 +0100
committersyt <syt@localhost.localdomain>2006-11-23 16:22:43 +0100
commit745345647e2ac1b23ae273a8a5148539fafb3edf (patch)
treedcd1b7190f326f7fde03d2c897d14b416bf1da47 /tree.py
parentfd8108a911a52202fb543850838646faf3fe602e (diff)
downloadlogilab-common-745345647e2ac1b23ae273a8a5148539fafb3edf.tar.gz
fix __iter__ for ListNode
Diffstat (limited to 'tree.py')
-rw-r--r--tree.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tree.py b/tree.py
index a69a851..435b3f0 100644
--- a/tree.py
+++ b/tree.py
@@ -268,7 +268,9 @@ class ListNode(VNode, list_class):
"""add a node to children"""
child = list_class.pop(self, index)
child.parent = None
-
+
+ def __iter__(self):
+ return list_class.__iter__(self)
# construct list from tree ####################################################