Commit 5ecff99c authored by Stefan Behnel's avatar Stefan Behnel

also skip '0' values in node dumps, as they usually just indicate False

parent c3e96486
...@@ -114,7 +114,7 @@ class TreeVisitor(BasicVisitor): ...@@ -114,7 +114,7 @@ class TreeVisitor(BasicVisitor):
value = getattr(node, attr) value = getattr(node, attr)
except AttributeError: except AttributeError:
continue continue
if value is None: if value is None or value == 0:
continue continue
elif isinstance(value, list): elif isinstance(value, list):
value = u'[...]' value = u'[...]'
......
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