return
module_scope = env.find_module(self.module_name, self.pos)
if "." in self.module_name:
- names = self.module_name.split(".")
+ names = [EncodedString(name) for name in self.module_name.split(".")]
top_name = names[0]
top_module_scope = env.context.find_submodule(top_name)
module_scope = top_module_scope
if name == "__new__":
warning(pos, "__new__ method of extension type will change semantics "
"in a future version of Pyrex and Cython. Use __cinit__ instead.")
- name = "__cinit__"
+ name = Utils.EncodedString("__cinit__")
entry = self.declare_var(name, py_object_type, pos)
special_sig = get_special_method_signature(name)
if special_sig:
def lookup_here(self, name):
if name == "__new__":
- name = "__cinit__"
+ name = Utils.EncodedString("__cinit__")
return ClassScope.lookup_here(self, name)
def declare_cfunction(self, name, type, pos,