strike unused (buggy) keyword param

--HG--
branch : trunk
This commit is contained in:
holger krekel
2010-04-27 17:53:07 +02:00
parent f691292aaa
commit 0d0a7b7fec
+4 -6
View File
@@ -110,17 +110,15 @@ class Node(object):
setattr(self, attrname, res) setattr(self, attrname, res)
return res return res
def listchain(self, rootfirst=False): def listchain(self):
""" return list of all parent collectors up to self, """ return list of all parent collectors up to self,
starting form root of collection tree. """ starting from root of collection tree. """
l = [self] l = [self]
while 1: while 1:
x = l[-1] x = l[0]
if x.parent is not None and x.parent.parent is not None: if x.parent is not None and x.parent.parent is not None:
l.append(x.parent) l.insert(0, x.parent)
else: else:
if not rootfirst:
l.reverse()
return l return l
def listnames(self): def listnames(self):