From a9b87c9cf41d1f3e825d7366fdc4fa01e2103a09 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 11 Mar 2004 01:08:13 +0000 Subject: [PATCH] Compute matches. --- comparator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] -- 2.43.0