From 5af2dfe29781a32b1515612d98955740729c55f2 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 28 Dec 2013 19:12:01 +0100 Subject: [PATCH] enable unicode format optimisation for '%' operator regardless of rhs --- Cython/Compiler/ExprNodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 0c9261e..cc65b92 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -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: -- 2.7.4