Commit 1b0069bb authored by Stefan Behnel's avatar Stefan Behnel

Repair constant folding for % operator.

parent c7a1e68b
......@@ -4258,7 +4258,7 @@ class ConstantFolding(Visitor.VisitorTransform, SkipDeclarations):
fstring = self._build_fstring(node.operand1.pos, node.operand1.value, node.operand2.args)
if fstring is not None:
return fstring
return node
return self.visit_BinopNode(node)
_parse_string_format_regex = (
u'(%(?:' # %...
......
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