From: Stefan Behnel Date: Fri, 21 Aug 2009 09:15:33 +0000 (+0200) Subject: Py3 encoding fix X-Git-Tag: 0.12.alpha0~239 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3a99cd2bab525bda6f27c28f83e1fbbdf26df0f0;p=cython.git Py3 encoding fix --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 8a5d360d..0f77303a 100644 --- 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("}")