Commit 7f265e5c authored by Stefan Behnel's avatar Stefan Behnel

print size of list attributes on node dump

parent 5ecff99c
...@@ -117,7 +117,7 @@ class TreeVisitor(BasicVisitor): ...@@ -117,7 +117,7 @@ class TreeVisitor(BasicVisitor):
if value is None or value == 0: if value is None or value == 0:
continue continue
elif isinstance(value, list): elif isinstance(value, list):
value = u'[...]' value = u'[...]/%d' % len(value)
elif not isinstance(value, (str, unicode, long, int, float)): elif not isinstance(value, (str, unicode, long, int, float)):
continue continue
else: else:
......
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