Commit d05cbd9b authored by Stefan Behnel's avatar Stefan Behnel

prevent recursively generated Cython utility code (i.e. used by other Cython...

prevent recursively generated Cython utility code (i.e. used by other Cython utility code) from appearing multiple times in the output due to a different outer module scope
parent 20d385c2
...@@ -94,7 +94,10 @@ class CythonUtilityCode(Code.UtilityCodeBase): ...@@ -94,7 +94,10 @@ class CythonUtilityCode(Code.UtilityCodeBase):
return False return False
def _equality_params(self): def _equality_params(self):
return self.impl, self.outer_module_scope, self.compiler_directives outer_scope = self.outer_module_scope
while isinstance(outer_scope, NonManglingModuleScope):
outer_scope = outer_scope.outer_scope
return self.impl, outer_scope, self.compiler_directives
def __hash__(self): def __hash__(self):
return hash(self.impl) return hash(self.impl)
......
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