Commit 73ee6c35 authored by Stefan Behnel's avatar Stefan Behnel

undo usage of __Pyx_NAMESTR() - not needed for dicts

parent aac98b78
...@@ -2048,8 +2048,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -2048,8 +2048,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln("{") code.putln("{")
code.putln("PyObject *modules = PyImport_GetModuleDict(); %s" % code.putln("PyObject *modules = PyImport_GetModuleDict(); %s" %
code.error_goto_if_null("modules", self.pos)) code.error_goto_if_null("modules", self.pos))
code.putln('if (!PyDict_GetItemString(modules, __Pyx_NAMESTR("%s"))) {' % env.module_name) code.putln('if (!PyDict_GetItemString(modules, "%s")) {' % env.module_name)
code.putln(code.error_goto_if_neg('PyDict_SetItemString(modules, __Pyx_NAMESTR("%s"), %s)' % ( code.putln(code.error_goto_if_neg('PyDict_SetItemString(modules, "%s", %s)' % (
env.module_name, env.module_cname), self.pos)) env.module_name, env.module_cname), self.pos))
code.putln("}") code.putln("}")
code.putln("}") code.putln("}")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment