From: Robert Bradshaw Date: Mon, 12 Apr 2010 17:07:28 +0000 (-0700) Subject: Disable random annotations for now. X-Git-Tag: 0.13.beta0~219 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=62cc7b9f801efa0831cc9ea8e9d716adf8750300;p=cython.git Disable random annotations for now. --- diff --git a/Cython/Compiler/Annotate.py b/Cython/Compiler/Annotate.py index 58b10aa1..4a073c97 100644 --- a/Cython/Compiler/Annotate.py +++ b/Cython/Compiler/Annotate.py @@ -64,15 +64,16 @@ class AnnotationCCodeWriter(CCodeWriter): lines[k] = line f.close() all = [] - for pos, item in self.annotations: - if pos[0].filename == source_filename: - start = item.start() - size, end = item.end() - if size: - all.append((pos, start)) - all.append(((source_filename, pos[1], pos[2]+size), end)) - else: - all.append((pos, start+end)) + if False: + for pos, item in self.annotations: + if pos[0].filename == source_filename: + start = item.start() + size, end = item.end() + if size: + all.append((pos, start)) + all.append(((source_filename, pos[1], pos[2]+size), end)) + else: + all.append((pos, start+end)) all.sort() all.reverse()