projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06695a0
)
fix the fix
author
Stefan Behnel
<scoder@users.berlios.de>
Mon, 4 May 2009 20:19:12 +0000
(22:19 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Mon, 4 May 2009 20:19:12 +0000
(22:19 +0200)
Cython/Compiler/ModuleNode.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ModuleNode.py
b/Cython/Compiler/ModuleNode.py
index 0b7eb86bcba31a48b7374d513bd67f48184f35a2..93829b8f64c5e934d171b0f9c36a0271b07ac8d5 100644
(file)
--- 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__
c
name = 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(