summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-10-29 06:33:31 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-10-29 06:33:31 -0400
commit59b07a12de95de776fa2f44a2101f63a156fee75 (patch)
tree464bd511dd250e1917df5536fe14b4098e2749fc /coverage/control.py
parent81a55d102550b4535191756960f6846083fc7e30 (diff)
downloadpython-coveragepy-git-59b07a12de95de776fa2f44a2101f63a156fee75.tar.gz
deprecated: the annotate command will be removed in a future version
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/coverage/control.py b/coverage/control.py
index a96f558a..ae4b14b3 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -932,6 +932,11 @@ class Coverage:
):
"""Annotate a list of modules.
+ .. note::
+ This method has been obsoleted by more modern reporting tools,
+ including the :meth:`html_report` method. It will be removed in a
+ future version.
+
Each module in `morfs` is annotated. The source is written to a new
file, named with a ",cover" suffix, with each line prefixed with a
marker to indicate the coverage of the line. Covered lines have ">",
@@ -940,6 +945,9 @@ class Coverage:
See :meth:`report` for other arguments.
"""
+ print("The annotate command will be removed in a future version.")
+ print("Get in touch if you still use it: ned@nedbatchelder.com")
+
with override_config(self,
ignore_errors=ignore_errors, report_omit=omit,
report_include=include, report_contexts=contexts,