projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
745ac5d
)
Py3 fix
author
Stefan Behnel
<scoder@users.berlios.de>
Fri, 21 Aug 2009 07:55:43 +0000
(09:55 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Fri, 21 Aug 2009 07:55:43 +0000
(09:55 +0200)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index c291431c671f789d2d6618f33a1f2fb0cd269b0c..407cd83fe6d2a7ddd771b112fedd84b73f38360c 100644
(file)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-5257,7
+5257,8
@@
class NoneCheckNode(CoercionNode):
"if (unlikely(%s == Py_None)) {" % self.arg.result())
code.putln('PyErr_SetString(%s, "%s"); %s ' % (
self.exception_type_cname,
- StringEncoding.escape_byte_string(self.exception_message),
+ StringEncoding.escape_byte_string(
+ self.exception_message.encode('UTF-8')),
code.error_goto(self.pos)))
code.putln("}")