From 1e544e4daea5244ff2161373f8be57afabfe8499 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 4 May 2009 22:19:12 +0200 Subject: [PATCH] fix the fix --- Cython/Compiler/ModuleNode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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( -- 2.26.2