emit code comment before generator wrapper function
authorStefan Behnel <scoder@users.berlios.de>
Mon, 13 Dec 2010 21:19:52 +0000 (22:19 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 13 Dec 2010 21:19:52 +0000 (22:19 +0100)
Cython/Compiler/Nodes.py

index 54324594c7d58b4c93ad96695b7612695e18d035..ea4e42bd83ad753a3748bf0de856250182649e24 100644 (file)
@@ -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