diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2010-05-15 23:03:52 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-05-15 23:03:52 -0400 |
commit | f0b3451e829de7311c39a18c0fb34312330981ef (patch) | |
tree | 18d749a0434445f0316ecc7b641739b2796e268b /coverage/html.py | |
parent | 4fb69b6c13c00bba910afe9d6beade673f4e4386 (diff) | |
download | python-coveragepy-git-f0b3451e829de7311c39a18c0fb34312330981ef.tar.gz |
Format the code to pylint's liking, and fix up the docstrings for omit and include.
Diffstat (limited to 'coverage/html.py')
-rw-r--r-- | coverage/html.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/coverage/html.py b/coverage/html.py index 16ec16bd..94ba0dea 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -31,23 +31,23 @@ class HtmlReporter(Reporter): self.files = [] self.arcs = coverage.data.has_arcs() - def report(self, morfs, directory, omit_prefixes=None, include_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 - the HTML files. `omit_prefixes` is a list of strings, prefixes of - modules to omit from the report. - - `omit_prefixes` is a list of prefixes. CodeUnits that match those prefixes - will be omitted from the list. - `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 `include_prefixes`. + the HTML files. + + See `coverage.report()` for other arguments. + """ assert directory, "must provide a directory for html reporting" # Process all the files. - self.report_files(self.html_file, morfs, directory, omit_prefixes, include_prefixes) + self.report_files( + self.html_file, morfs, directory, omit_prefixes, include_prefixes + ) # Write the index file. self.index_file() |