projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ecf24a
)
Py3 encoding fix
author
Stefan Behnel
<scoder@users.berlios.de>
Fri, 21 Aug 2009 09:15:33 +0000
(11:15 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Fri, 21 Aug 2009 09:15:33 +0000
(11:15 +0200)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index 8a5d360d4f7d21e6178e2a84943f69387bb7b12a..0f77303aeb59ad42912b47e033443cd840523f2f 100644
(file)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-2907,7
+2907,7
@@
class AttributeNode(ExprNode):
def put_nonecheck(self, code):
code.globalstate.use_utility_code(raise_noneattr_error_utility_code)
code.putln("if (%s) {" % code.unlikely("%s == Py_None") % self.obj.result_as(PyrexTypes.py_object_type))
- code.putln("__Pyx_RaiseNoneAttributeError(\"%s\");" % self.attribute
.encode("UTF-8")) # todo: fix encoding
+ code.putln("__Pyx_RaiseNoneAttributeError(\"%s\");" % self.attribute
)
code.putln(code.error_goto(self.pos))
code.putln("}")