From dfa8ec6c1037b9bb2acf05412e140ea3e9401546 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 18 Sep 2003 17:26:00 +0000 Subject: [PATCH] Avoid a silly error. --- comparator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/comparator.py b/comparator.py index a671859..805d26c 100644 --- a/comparator.py +++ b/comparator.py @@ -59,6 +59,8 @@ class CommonReport: def read_matches(self): # Now read the common-segment stuff + if self.cliques: + return self.files = {} locations = [] while 1: @@ -81,8 +83,7 @@ class CommonReport: def extract_text(self, clique): "Return text corresponding to the given clique." - if self.matches and not self.cliques: - self.read_matches() + self.read_matches() text = None if self.dir: olddir = os.getcwd() @@ -109,8 +110,7 @@ class CommonReport: def filter_by_size(self, minsize): "Throw out all common segments below a specified size." - if self.matches and not self.cliques: - self.read_matches() + self.read_matches() filtered = [] for clique in self.cliques: for (file, start, end) in clique: -- 2.43.0