projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9152579
)
more streamlining
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 20 Dec 2008 18:49:31 +0000
(19:49 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 20 Dec 2008 18:49:31 +0000
(19:49 +0100)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index 08bc34b38c90fabf1b5a45f1f44ad694d9186ab1..7db0030f34f2da596709f8398935008f649b7504 100644
(file)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-209,11
+209,11
@@
class ExprNode(Node):
nodes = []
for name in self.subexprs:
item = getattr(self, name)
- if item:
- if isinstance(item, ExprNode):
- nodes.append(item)
- else:
+ if item is not None:
+ if type(item) is list:
nodes.extend(item)
+ else:
+ nodes.append(item)
return nodes
def result(self):