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

minor code cleanup

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