Py3 encoding fix
authorStefan Behnel <scoder@users.berlios.de>
Fri, 21 Aug 2009 09:15:33 +0000 (11:15 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 21 Aug 2009 09:15:33 +0000 (11:15 +0200)
Cython/Compiler/ExprNodes.py

index 8a5d360d4f7d21e6178e2a84943f69387bb7b12a..0f77303aeb59ad42912b47e033443cd840523f2f 100644 (file)
@@ -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("}")