summaryrefslogtreecommitdiff
path: root/coverage/annotate.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
commit3a7cc512247059017ddd5ced1344578c845c9edd (patch)
treeb9bd7cd406d43154e45fd563ad7c89e05ebd8400 /coverage/annotate.py
parent26316d5d71e33daadcf6272288fd5a6a7a5e8423 (diff)
downloadpython-coveragepy-git-3a7cc512247059017ddd5ced1344578c845c9edd.tar.gz
Pass config objects around to limit the sprawl of argument lists.
Diffstat (limited to 'coverage/annotate.py')
-rw-r--r--coverage/annotate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/annotate.py b/coverage/annotate.py
index e6e7485d..a556d853 100644
--- a/coverage/annotate.py
+++ b/coverage/annotate.py
@@ -33,13 +33,13 @@ class AnnotateReporter(Reporter):
blank_re = re.compile(r"\s*(#|$)")
else_re = re.compile(r"\s*else\s*:\s*(#|$)")
- def report(self, morfs, directory=None, omit=None, include=None):
+ def report(self, morfs, config, directory=None):
"""Run the report.
See `coverage.report()` for arguments.
"""
- self.report_files(self.annotate_file, morfs, directory, omit, include)
+ self.report_files(self.annotate_file, morfs, config, directory)
def annotate_file(self, cu, analysis):
"""Annotate a single file.