Mercurial > hg > config
diff python/tree.py @ 426:866c5b1bc4e8
stubbing
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 06 Aug 2013 18:30:15 -0700 |
parents | 5417eb6364ee |
children | 9b7f5e31b465 |
line wrap: on
line diff
--- a/python/tree.py Tue Aug 06 18:26:42 2013 -0700 +++ b/python/tree.py Tue Aug 06 18:30:15 2013 -0700 @@ -46,9 +46,11 @@ def __init__(self, parent=None): self.parent = parent + self._children = [] def children(self): """returns children of the tree""" + return self._children # base implementation def add(self, item): """add a child to the tree root"""