From: Robert Bradshaw Date: Fri, 10 Jul 2009 07:42:48 +0000 (-0700) Subject: Fix cython.locals in pxd for pure Python mode. X-Git-Tag: 0.12.alpha0~224^2~1^2^2~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a86eb386522642aae29c280e06ad407d49121281;p=cython.git Fix cython.locals in pxd for pure Python mode. --- 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))