Skip to content

Commit 19f24b6

Browse files
author
whitequark
committedJun 13, 2015
Don't munge unknown fields in algorithm.Transformer.
1 parent 2167c88 commit 19f24b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎pythonparser/algorithm.py

+2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ def visit(self, obj):
8282
return list(filter(lambda x: x is not None, map(self.visit, obj)))
8383
elif isinstance(obj, ast.AST):
8484
return self._visit_one(obj)
85+
else:
86+
return obj
8587

8688
def compare(left, right, compare_locs=False):
8789
"""

0 commit comments

Comments
 (0)
Please sign in to comment.