From 33784d77815bad7df79bc9fc2e5574c495a269a0 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Fri, 27 Mar 2009 19:58:16 -0700 Subject: [PATCH] Propagate directives in analysis phase. --- Cython/Compiler/Nodes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 1757a7d7..51601ca0 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -1398,6 +1398,7 @@ class CFuncDefNode(FuncDefNode): return with_gil def analyse_expressions(self, env): + self.local_scope.directives = env.directives self.analyse_default_values(env) if self.py_func is not None: self.py_func.analyse_expressions(env) @@ -1824,6 +1825,7 @@ class DefNode(FuncDefNode): env.control_flow.set_state((), (arg.name, 'initalized'), True) def analyse_expressions(self, env): + self.local_scope.directives = env.directives self.analyse_default_values(env) if env.is_py_class_scope: self.synthesize_assignment_node(env) -- 2.26.2