Commit 521e2d0d authored by Stefan Behnel's avatar Stefan Behnel

propagate constant_result for special case in FlattenInListTransform

parent c4fe3e0c
......@@ -1008,7 +1008,9 @@ class FlattenInListTransform(Visitor.VisitorTransform, SkipDeclarations):
args = node.operand2.args
if len(args) == 0:
return ExprNodes.BoolNode(pos = node.pos, value = node.operator == 'not_in')
constant_result = node.operator == 'not_in'
return ExprNodes.BoolNode(pos = node.pos, value = constant_result,
constant_result = constant_result)
lhs = UtilNodes.ResultRefNode(node.operand1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment