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/annotate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coverage/annotate.py') 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. -- cgit v1.2.1