diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2015-02-13 13:48:02 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2015-02-13 13:48:02 +0100 |
commit | 4d5635536a88babc02d0284820fcc37cee87bc3e (patch) | |
tree | 7aa6703ec27abec7a5fefc703542fef377e3a9bd | |
parent | bc62afa3bf4bcb8aae0353e9565c9a93a4d854f6 (diff) | |
download | cython-4d5635536a88babc02d0284820fcc37cee87bc3e.tar.gz |
replace useless dict items iteration by predictably ordered key iteration
--HG--
extra : transplant_source : %A0%CB%0B1_H%F3%CC%D7%2A%A39%E591D%D6i%9F%FE
-rw-r--r-- | Cython/Compiler/ParseTreeTransforms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index a4403101a..49ba013be 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -692,7 +692,7 @@ class InterpretCompilerDirectives(CythonTransform, SkipDeclarations): # Set up processing and handle the cython: comments. def visit_ModuleNode(self, node): - for key, value in node.directive_comments.items(): + for key in sorted(node.directive_comments): if not self.check_directive_scope(node.pos, key, 'module'): self.wrong_scope_error(node.pos, key, 'module') del node.directive_comments[key] |