From 62cc7b9f801efa0831cc9ea8e9d716adf8750300 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Mon, 12 Apr 2010 10:07:28 -0700 Subject: [PATCH] Disable random annotations for now. --- Cython/Compiler/Annotate.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) 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() -- 2.26.2