From: Eric S. Raymond Date: Thu, 11 Mar 2004 01:08:13 +0000 (+0000) Subject: Compute matches. X-Git-Tag: 2.4~6 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=a9b87c9cf41d1f3e825d7366fdc4fa01e2103a09;p=comparator.git Compute matches. --- diff --git a/comparator.py b/comparator.py index e4860af..bf6f988 100644 --- a/comparator.py +++ b/comparator.py @@ -171,9 +171,9 @@ class CommonReport: for (treename, properties) in self.trees: if treename == file.split("/")[0]: break - if not treename in intree: + if not intree.get(treename, False): matches[treename] += 1 - intree[tree] = True + intree[treename] = True matchlines[treename] += end - start + 1 for (treename, properties) in self.trees: properties['matches'] = matches[treename]