Commit 0b096e93 authored by Stefan Behnel's avatar Stefan Behnel

Avoid useless instance assignment on NameNode to save a bit of memory.

parent c0b299e2
......@@ -852,7 +852,9 @@ class InterpretCompilerDirectives(CythonTransform, SkipDeclarations):
if node.name in self.cython_module_names:
node.is_cython_module = True
else:
node.cython_attribute = self.directive_names.get(node.name)
directive = self.directive_names.get(node.name)
if directive is not None:
node.cython_attribute = directive
return node
def try_to_parse_directives(self, node):
......
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