diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2010-09-02 22:06:16 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-09-02 22:06:16 -0400 |
commit | 2b5c9726e2980273e3d1b371332e75722d1a29a2 (patch) | |
tree | 2dfde62792369b98054b424fd630a7313f83ca80 /coverage/summary.py | |
parent | 190c0ab9b216f507433a2c0c59a3e923ef4d8163 (diff) | |
download | python-coveragepy-2b5c9726e2980273e3d1b371332e75722d1a29a2.tar.gz |
Pass config objects around to limit the sprawl of argument lists.
Diffstat (limited to 'coverage/summary.py')
-rw-r--r-- | coverage/summary.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/coverage/summary.py b/coverage/summary.py index a1206af..599ae78 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]) |