summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ModuleNode.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2014-01-23 20:20:23 +0100
committerStefan Behnel <stefan_ml@behnel.de>2014-01-23 20:20:23 +0100
commit298cc6cbd373289bab9f3034889fd9f9ae8dbd55 (patch)
tree7a2fde72d6bc8180223dccaf23c69edb25025e7f /Cython/Compiler/ModuleNode.py
parent44600f77d1409981c60ffa94bb2f1891d4194704 (diff)
downloadcython-298cc6cbd373289bab9f3034889fd9f9ae8dbd55.tar.gz
make C code order in 'from-import *' table deterministic
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r--Cython/Compiler/ModuleNode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
index 6c8703b98..251581715 100644
--- a/Cython/Compiler/ModuleNode.py
+++ b/Cython/Compiler/ModuleNode.py
@@ -1936,7 +1936,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
env.use_utility_code(streq_utility_code)
code.putln()
code.putln("static char* %s_type_names[] = {" % Naming.import_star)
- for name, entry in env.entries.items():
+ for name, entry in sorted(env.entries.items()):
if entry.is_type:
code.putln('"%s",' % name)
code.putln("0")