From: Stefan Behnel Date: Sat, 1 Nov 2008 05:01:48 +0000 (+0100) Subject: fix Cython code context comments in C code when annotation is enables X-Git-Tag: 0.10~2^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=47a9879e3c60acee550c185a12f60101309ff939;p=cython.git fix Cython code context comments in C code when annotation is enables --- 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()