diff options
author | Robert Bradshaw <robertwb@gmail.com> | 2015-10-14 01:49:59 -0700 |
---|---|---|
committer | Robert Bradshaw <robertwb@gmail.com> | 2015-10-14 01:49:59 -0700 |
commit | 7db027820361fa71ddc44d6067d5feba852743a2 (patch) | |
tree | de8f833a96967ebd9799b3744546e2a432aefde3 /Cython/Compiler/ModuleNode.py | |
parent | 64a34cf26bcf72aead89aff4384a5c655cd55fa1 (diff) | |
download | cython-7db027820361fa71ddc44d6067d5feba852743a2.tar.gz |
More non-determanism fixes.
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r-- | Cython/Compiler/ModuleNode.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 1de9dc93e..0398becf8 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -1987,7 +1987,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): def create_import_star_conversion_utility_code(self, env): # Create all conversion helpers that are needed for "import *" assignments. # Must be done before code generation to support CythonUtilityCode. - for name, entry in env.entries.items(): + for name, entry in sorted(env.entries.items()): if entry.is_cglobal and entry.used: if not entry.type.is_pyobject: entry.type.create_from_py_utility_code(env) @@ -2016,7 +2016,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): old_error_label = code.new_error_label() code.putln("if (0);") # so the first one can be "else if" - for name, entry in env.entries.items(): + for name, entry in sorted(env.entries.items()): if entry.is_cglobal and entry.used: code.putln('else if (__Pyx_StrEq(name, "%s")) {' % name) if entry.type.is_pyobject: |