From: Stefan Behnel Date: Mon, 13 Dec 2010 21:19:52 +0000 (+0100) Subject: emit code comment before generator wrapper function X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=208b21688e161f732642cfd5397fc5861bd6624d;p=cython.git emit code comment before generator wrapper function --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 54324594..ea4e42bd 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -1910,6 +1910,7 @@ class GeneratorWrapperNode(object): self.header = header def generate_function_body(self, env, code): + code.mark_pos(self.def_node.pos) cenv = env.outer_scope # XXX: correct? while cenv.is_py_class_scope or cenv.is_c_class_scope: cenv = cenv.outer_scope