Commit a86eb386 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix cython.locals in pxd for pure Python mode.

parent 2f2fa55c
......@@ -1332,7 +1332,7 @@ class CFuncDefNode(FuncDefNode):
return self.entry.name
def analyse_declarations(self, env):
directive_locals = self.directive_locals = env.directives['locals']
self.directive_locals.update(env.directives['locals'])
base_type = self.base_type.analyse(env)
# The 2 here is because we need both function and argument names.
name_declarator, type = self.declarator.analyse(base_type, env, nonempty = 2 * (self.body is not None))
......
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