also skip '0' values in node dumps, as they usually just indicate False
authorStefan Behnel <scoder@users.berlios.de>
Sat, 10 Jan 2009 16:56:10 +0000 (17:56 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 10 Jan 2009 16:56:10 +0000 (17:56 +0100)
Cython/Compiler/Visitor.py

index 0e67f36f148c6cc085b5a48261387489b71bac1d..7e2e2e0f6cfac8cbed918a049d979eeca5ba0a2b 100644 (file)
@@ -114,7 +114,7 @@ class TreeVisitor(BasicVisitor):
                 value = getattr(node, attr)
             except AttributeError:
                 continue
-            if value is None:
+            if value is None or value == 0:
                 continue
             elif isinstance(value, list):
                 value = u'[...]'