Don't forget to iterate over the populate generator.

This commit is contained in:
Mike Auty
2017-08-02 10:05:12 +01:00
parent ff3d5e8f3b
commit d8c53b63bf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -240,7 +240,7 @@ class TreeGrid(interfaces.renderers.TreeGrid):
for every node we descend further down
"""
if not self.populated:
self.populate()
list(self.populate())
# Find_nodes is path dependent, whereas _visit is not
# So in case the function modifies the node's path, find the nodes first
+1 -1
View File
@@ -53,4 +53,4 @@ class QuickTextRenderer(interfaces.renderers.Renderer):
accumulator.write("\n")
return accumulator
grid.populate(visitor, outfd)
list(grid.populate(visitor, outfd))