Fix cython.locals in pxd for pure Python mode.
authorRobert Bradshaw <robertwb@math.washington.edu>
Fri, 10 Jul 2009 07:42:48 +0000 (00:42 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Fri, 10 Jul 2009 07:42:48 +0000 (00:42 -0700)
Cython/Compiler/Nodes.py

index 67d8f2c1ec9143190450869868c377f347d8c5c0..ef2e841b37593ee6bc412072de34b44734e6ddac 100644 (file)
@@ -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))