summaryrefslogtreecommitdiff
path: root/coverage/summary.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2010-09-02 22:06:16 -0400
committerNed Batchelder <ned@nedbatchelder.com>2010-09-02 22:06:16 -0400
commit2b5c9726e2980273e3d1b371332e75722d1a29a2 (patch)
tree2dfde62792369b98054b424fd630a7313f83ca80 /coverage/summary.py
parent190c0ab9b216f507433a2c0c59a3e923ef4d8163 (diff)
downloadpython-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.py7
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])