projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b353c1e
)
enable unicode format optimisation for '%' operator regardless of rhs
author
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 28 Dec 2013 18:12:01 +0000
(19:12 +0100)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 28 Dec 2013 18:12:01 +0000
(19:12 +0100)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index
0c9261e
..
cc65b92
100644
(file)
--- 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: