diff options
author | syt <syt@localhost.localdomain> | 2006-11-23 16:22:43 +0100 |
---|---|---|
committer | syt <syt@localhost.localdomain> | 2006-11-23 16:22:43 +0100 |
commit | 745345647e2ac1b23ae273a8a5148539fafb3edf (patch) | |
tree | dcd1b7190f326f7fde03d2c897d14b416bf1da47 /tree.py | |
parent | fd8108a911a52202fb543850838646faf3fe602e (diff) | |
download | logilab-common-745345647e2ac1b23ae273a8a5148539fafb3edf.tar.gz |
fix __iter__ for ListNode
Diffstat (limited to 'tree.py')
-rw-r--r-- | tree.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 #################################################### |