From 47a9879e3c60acee550c185a12f60101309ff939 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 1 Nov 2008 06:01:48 +0100 Subject: [PATCH] fix Cython code context comments in C code when annotation is enables --- Cython/Compiler/Annotate.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Cython/Compiler/Annotate.py b/Cython/Compiler/Annotate.py index 4a8a27bb..4796ec83 100644 --- a/Cython/Compiler/Annotate.py +++ b/Cython/Compiler/Annotate.py @@ -39,9 +39,8 @@ class AnnotationCCodeWriter(CCodeWriter): self.annotation_buffer.write(s) def mark_pos(self, pos): -# if pos is not None: -# CCodeWriter.mark_pos(self, pos) -# return + if pos is not None: + CCodeWriter.mark_pos(self, pos) if self.last_pos: code = self.code.get(self.last_pos[1], "") self.code[self.last_pos[1]] = code + self.annotation_buffer.getvalue() -- 2.26.2