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 | 71eb7216fadf47bcc1135839b77610fe72c3d1c5 (patch) | |
tree | 2661d99a587a9fc58f31bd4dd3d6ff226a770100 /Cython/Compiler/ParseTreeTransforms.py | |
parent | 3890f67f3e47a3add5ed80f6add097d24befa6ac (diff) | |
download | cython-71eb7216fadf47bcc1135839b77610fe72c3d1c5.tar.gz |
replace useless dict items iteration by predictably ordered key iteration
Diffstat (limited to 'Cython/Compiler/ParseTreeTransforms.py')
-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 e5d74fb11..ed83d2dec 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] |