From: Robert Bradshaw Date: Sat, 28 Mar 2009 02:58:16 +0000 (-0700) Subject: Propagate directives in analysis phase. X-Git-Tag: 0.12.alpha0~334^2~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=33784d77815bad7df79bc9fc2e5574c495a269a0;p=cython.git Propagate directives in analysis phase. --- 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)