projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d43413b
)
micro fix for switch transform
author
Stefan Behnel
<scoder@users.berlios.de>
Fri, 11 Jul 2008 13:34:27 +0000
(15:34 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Fri, 11 Jul 2008 13:34:27 +0000
(15:34 +0200)
Cython/Compiler/Optimize.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Optimize.py
b/Cython/Compiler/Optimize.py
index a62f108875e58dd33a5145c3ce678b29dccf52ad..77a26a823f55cd67c7ca49d78bb8fdb50d673e3e 100644
(file)
--- a/
Cython/Compiler/Optimize.py
+++ b/
Cython/Compiler/Optimize.py
@@
-100,9
+100,9
@@
class FlattenInListTransform(Visitor.VisitorTransform):
eq_or_neq = '!='
else:
return node
-
- args = node.operand2.args
+
if isinstance(node.operand2, ExprNodes.TupleNode) or isinstance(node.operand2, ExprNodes.ListNode):
+ args = node.operand2.args
if len(args) == 0:
return ExprNodes.BoolNode(pos = node.pos, value = node.operator == 'not_in')
else: