Commit 5af2dfe2 authored by Stefan Behnel's avatar Stefan Behnel

enable unicode format optimisation for '%' operator regardless of rhs

parent b353c1e8
......@@ -9459,7 +9459,7 @@ class ModNode(DivNode):
self.operand2.result())
def py_operation_function(self):
if self.operand1.type is unicode_type and self.operand2.type.is_builtin_type:
if self.operand1.type is unicode_type:
if self.operand1.may_be_none():
return '__Pyx_PyUnicode_Format'
else:
......
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