Commit 51ac89ea authored by Stefan Behnel's avatar Stefan Behnel

more streamlining

parent 91525792
......@@ -209,11 +209,11 @@ class ExprNode(Node):
nodes = []
for name in self.subexprs:
item = getattr(self, name)
if item:
if isinstance(item, ExprNode):
nodes.append(item)
else:
if item is not None:
if type(item) is list:
nodes.extend(item)
else:
nodes.append(item)
return nodes
def result(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment