From a86eb386522642aae29c280e06ad407d49121281 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Fri, 10 Jul 2009 00:42:48 -0700 Subject: [PATCH] Fix cython.locals in pxd for pure Python mode. --- Cython/Compiler/Nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 67d8f2c1..ef2e841b 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -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)) -- 2.26.2