From 3a7cc512247059017ddd5ced1344578c845c9edd Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 2 Sep 2010 22:06:16 -0400 Subject: Pass config objects around to limit the sprawl of argument lists. --- coverage/summary.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'coverage/summary.py') diff --git a/coverage/summary.py b/coverage/summary.py index a1206af5..599ae782 100644 --- a/coverage/summary.py +++ b/coverage/summary.py @@ -14,13 +14,14 @@ class SummaryReporter(Reporter): self.show_missing = show_missing self.branches = coverage.data.has_arcs() - def report(self, morfs, omit=None, outfile=None, include=None): + def report(self, morfs, outfile=None, config=None): """Writes a report summarizing coverage statistics per module. - See `coverage.report()` for other arguments. + `outfile` is a file object to write the summary to. `config` is a + CoverageConfig instance. """ - self.find_code_units(morfs, omit, include) + self.find_code_units(morfs, config) # Prepare the formatting strings max_name = max([len(cu.name) for cu in self.code_units] + [5]) -- cgit v1.2.1