projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ce5c64
)
fix Cython code context comments in C code when annotation is enables
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 1 Nov 2008 05:01:48 +0000
(06:01 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 1 Nov 2008 05:01:48 +0000
(06:01 +0100)
Cython/Compiler/Annotate.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Annotate.py
b/Cython/Compiler/Annotate.py
index 4a8a27bb2493ae145c15328b1806275206132266..4796ec838629c5f9b10e665ac7b3ac94da982e91 100644
(file)
--- 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()