summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-11-05 15:35:22 -0400
committerNed Batchelder <ned@nedbatchelder.com>2022-11-05 15:35:22 -0400
commit3b3cc6959b3aa515915816c2159806fab570ceb9 (patch)
tree8c2964ea146ce654ea7346b1a86fc87d510f6015 /coverage/control.py
parent01d86775522ed67a246f2b17657e7a119cb6b8a1 (diff)
downloadpython-coveragepy-git-3b3cc6959b3aa515915816c2159806fab570ceb9.tar.gz
refactor: use `format` wherever we can
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/coverage/control.py b/coverage/control.py
index a8cf1649..d260eeab 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -923,8 +923,8 @@ class Coverage:
`file` is a file-like object, suitable for writing.
- `output_format` provides options, to print eitehr as plain text, or as
- markdown code
+ `output_format` determines the format, either "text" (the default),
+ or "markdown".
`include` is a list of file name patterns. Files that match will be
included in the report. Files matching `omit` will not be included in
@@ -966,7 +966,7 @@ class Coverage:
ignore_errors=ignore_errors, report_omit=omit, report_include=include,
show_missing=show_missing, skip_covered=skip_covered,
report_contexts=contexts, skip_empty=skip_empty, precision=precision,
- sort=sort, output_format=output_format,
+ sort=sort, format=output_format,
):
reporter = SummaryReporter(self)
return reporter.report(morfs, outfile=file)