fix the fix
authorStefan Behnel <scoder@users.berlios.de>
Mon, 4 May 2009 20:19:12 +0000 (22:19 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 4 May 2009 20:19:12 +0000 (22:19 +0200)
Cython/Compiler/ModuleNode.py

index 0b7eb86bcba31a48b7374d513bd67f48184f35a2..93829b8f64c5e934d171b0f9c36a0271b07ac8d5 100644 (file)
@@ -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(