projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3e9648
)
also skip '0' values in node dumps, as they usually just indicate False
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 10 Jan 2009 16:56:10 +0000
(17:56 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 10 Jan 2009 16:56:10 +0000
(17:56 +0100)
Cython/Compiler/Visitor.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Visitor.py
b/Cython/Compiler/Visitor.py
index 0e67f36f148c6cc085b5a48261387489b71bac1d..7e2e2e0f6cfac8cbed918a049d979eeca5ba0a2b 100644
(file)
--- 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'[...]'