Commit b72e2421 authored by Stefan Behnel's avatar Stefan Behnel

fix glitch in constant folding of slices

parent eaca39b0
...@@ -3339,7 +3339,7 @@ class ConstantFolding(Visitor.VisitorTransform, SkipDeclarations): ...@@ -3339,7 +3339,7 @@ class ConstantFolding(Visitor.VisitorTransform, SkipDeclarations):
# cut down sliced constant sequences # cut down sliced constant sequences
if node.constant_result is not not_a_constant: if node.constant_result is not not_a_constant:
base = node.base base = node.base
if base.is_sequence_constructor: if base.is_sequence_constructor and base.mult_factor is None:
base.args = base.args[start:stop] base.args = base.args[start:stop]
return base return base
elif base.is_string_literal: elif base.is_string_literal:
......
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