From: Stefan Behnel Date: Mon, 4 May 2009 20:19:12 +0000 (+0200) Subject: fix the fix X-Git-Tag: 0.12.alpha0~303 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1e544e4daea5244ff2161373f8be57afabfe8499;p=cython.git fix the fix --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 0b7eb86b..93829b8f 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -1806,12 +1806,12 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): Naming.builtins_cname, code.error_goto(self.pos))) if Options.embed: - __main__cname = code.globalstate.get_py_string_const( + __main__name = code.globalstate.get_py_string_const( EncodedString("__main__"), identifier=True) code.putln( 'if (__Pyx_SetAttrString(%s, "__name__", %s) < 0) %s;' % ( env.module_cname, - __main__cname, + __main__name.cname, code.error_goto(self.pos))) if Options.pre_import is not None: code.putln(