From: Stefan Behnel Date: Sat, 10 Jan 2009 16:56:10 +0000 (+0100) Subject: also skip '0' values in node dumps, as they usually just indicate False X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5ecff99ceb63181db83089e9060209c7e419bc6f;p=cython.git also skip '0' values in node dumps, as they usually just indicate False --- 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'[...]'