From 208b21688e161f732642cfd5397fc5861bd6624d Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 13 Dec 2010 22:19:52 +0100 Subject: [PATCH] emit code comment before generator wrapper function --- Cython/Compiler/Nodes.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.26.2