From 4359a047bc509ed8d7b60e9d3c118b6cb365dcee Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Wed, 31 Oct 2012 22:47:03 -0700 Subject: [PATCH] Fix using non-encoded strings as identifiers. --- Cython/Compiler/Nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index b2f394e..777dc4b 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -706,7 +706,7 @@ class CArgDeclNode(Node): # We fix that here. if isinstance(self.declarator, CNameDeclaratorNode) and self.declarator.name == '': if nonempty: - self.declarator.name = self.base_type.name + self.declarator.name = EncodedString(self.base_type.name) self.base_type.name = None self.base_type.is_basic_c_type = False could_be_name = True @@ -850,7 +850,7 @@ class CSimpleBaseTypeNode(CBaseTypeNode): ## type = Builtin.type_type else: type = py_object_type - self.arg_name = self.name + self.arg_name = EncodedString(self.name) else: if self.templates: if not self.name in self.templates: -- 2.7.4