diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2010-05-15 11:50:39 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-05-15 11:50:39 -0400 |
commit | 0686f8453036455539e7d34697b73638fa8c1087 (patch) | |
tree | 8742c5f19d8df80464209bc6cd16dc8339aa8f59 /coverage/html.py | |
parent | 97265b62b1ae9d28952cdee7a72e8c2e77673a1e (diff) | |
download | python-coveragepy-0686f8453036455539e7d34697b73638fa8c1087.tar.gz |
Change 'requires' to 'include'.
Diffstat (limited to 'coverage/html.py')
-rw-r--r-- | coverage/html.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/coverage/html.py b/coverage/html.py index 61712f3..16ec16b 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -31,7 +31,7 @@ class HtmlReporter(Reporter): self.files = [] self.arcs = coverage.data.has_arcs() - def report(self, morfs, directory, omit_prefixes=None, require_prefixes=None): + def report(self, morfs, directory, omit_prefixes=None, include_prefixes=None): """Generate an HTML report for `morfs`. `morfs` is a list of modules or filenames. `directory` is where to put @@ -40,14 +40,14 @@ class HtmlReporter(Reporter): `omit_prefixes` is a list of prefixes. CodeUnits that match those prefixes will be omitted from the list. - `require_prefixes` is a list of prefixes. Only CodeUnits that match those prefixes + `include_prefixes` is a list of prefixes. Only CodeUnits that match those prefixes will be included in the list. - You are required to pass at most one of `omit_prefixes` and `require_prefixes`. + You are required to pass at most one of `omit_prefixes` and `include_prefixes`. """ assert directory, "must provide a directory for html reporting" # Process all the files. - self.report_files(self.html_file, morfs, directory, omit_prefixes, require_prefixes) + self.report_files(self.html_file, morfs, directory, omit_prefixes, include_prefixes) # Write the index file. self.index_file() |