Commit 4d563553 authored by Stefan Behnel's avatar Stefan Behnel

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
parent bc62afa3
......@@ -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]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment