Commit 0f712bb7 authored by Stefan Behnel's avatar Stefan Behnel

minor code cleanup

parent 49d8b5a2
......@@ -234,7 +234,7 @@ class VisitorTransform(TreeVisitor):
def visitchildren(self, parent, attrs=None):
result = self._visitchildren(parent, attrs)
for attr, newnode in result.iteritems():
if not type(newnode) is list:
if type(newnode) is not list:
setattr(parent, attr, newnode)
else:
# Flatten the list one level and remove any None
......
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