From 19e52a9bdcfc3318efb2cdcbf1e9cf3343b3dbf8 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 15 Oct 2009 06:38:10 -0400 Subject: Refactor the analysis results so we aren't passing so many tuples around. --- coverage/summary.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'coverage/summary.py') diff --git a/coverage/summary.py b/coverage/summary.py index 916b41e7..989256fc 100644 --- a/coverage/summary.py +++ b/coverage/summary.py @@ -41,16 +41,16 @@ class SummaryReporter(Reporter): for cu in self.code_units: try: - statements, _, missing, readable = self.coverage._analyze(cu) - n = len(statements) - m = n - len(missing) + analysis = self.coverage._analyze(cu) + n = len(analysis.statements) + m = n - len(analysis.missing) if n > 0: pc = 100.0 * m / n else: pc = 100.0 args = (cu.name, n, m, pc) if self.show_missing: - args = args + (readable,) + args = args + (analysis.missing_formatted(),) outfile.write(fmt_coverage % args) total_units += 1 total_statements = total_statements + n -- cgit v1.2.1