summaryrefslogtreecommitdiff
path: root/coverage/annotate.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2010-05-23 16:09:44 -0400
committerNed Batchelder <ned@nedbatchelder.com>2010-05-23 16:09:44 -0400
commitcd1b610a9645b0a3a53ce1c2779236c40e5d2164 (patch)
tree2a27b44eb82048020b5f83b487001d2d67e13bb6 /coverage/annotate.py
parent88eef7d43f1056d8ff65ca260fa7f28e49f4bfc1 (diff)
downloadpython-coveragepy-cd1b610a9645b0a3a53ce1c2779236c40e5d2164.tar.gz
Omit and include are now filename patterns rather than prefixes. BACKWARD INCOMPATIBLE change.
Diffstat (limited to 'coverage/annotate.py')
-rw-r--r--coverage/annotate.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/coverage/annotate.py b/coverage/annotate.py
index 5cbdd6a..e6e7485 100644
--- a/coverage/annotate.py
+++ b/coverage/annotate.py
@@ -33,17 +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_prefixes=None,
- include_prefixes=None):
+ def report(self, morfs, directory=None, omit=None, include=None):
"""Run the report.
See `coverage.report()` for arguments.
"""
- self.report_files(
- self.annotate_file, morfs, directory, omit_prefixes,
- include_prefixes
- )
+ self.report_files(self.annotate_file, morfs, directory, omit, include)
def annotate_file(self, cu, analysis):
"""Annotate a single file.