From 5ecff99ceb63181db83089e9060209c7e419bc6f Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 10 Jan 2009 17:56:10 +0100 Subject: [PATCH] also skip '0' values in node dumps, as they usually just indicate False --- Cython/Compiler/Visitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Visitor.py b/Cython/Compiler/Visitor.py index 0e67f36f..7e2e2e0f 100644 --- a/Cython/Compiler/Visitor.py +++ b/Cython/Compiler/Visitor.py @@ -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'[...]' -- 2.26.2