]> thyrsus.com Git - comparator.git/commitdiff
Compute matches.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 11 Mar 2004 01:08:13 +0000 (01:08 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 11 Mar 2004 01:08:13 +0000 (01:08 +0000)
comparator.py

index e4860affc04ad1b695f2cdc6730ae9887d58a052..bf6f9883e56c0bd37a40be3296f2763e48746dd5 100644 (file)
@@ -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]