From: Lisandro Dalcin Date: Tue, 13 Apr 2010 18:14:23 +0000 (-0300) Subject: quick fix for annotations not working with string source descriptors X-Git-Tag: 0.13.beta0~217 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2feda80fd35fcb2a7b191b8b102e718f7b29b67f;p=cython.git quick fix for annotations not working with string source descriptors --- diff --git a/Cython/Compiler/Annotate.py b/Cython/Compiler/Annotate.py index 4a073c97..d2dbb6a0 100644 --- a/Cython/Compiler/Annotate.py +++ b/Cython/Compiler/Annotate.py @@ -44,7 +44,7 @@ class AnnotationCCodeWriter(CCodeWriter): if pos is not None: CCodeWriter.mark_pos(self, pos) if self.last_pos: - pos_code = self.code.setdefault(self.last_pos[0].filename,{}) + pos_code = self.code.setdefault(self.last_pos[0].get_description(),{}) code = pos_code.get(self.last_pos[1], "") pos_code[self.last_pos[1]] = code + self.annotation_buffer.getvalue() self.annotation_buffer = StringIO()