summaryrefslogtreecommitdiff
path: root/coverage/plugin.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-05-01 18:18:11 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-05-02 07:38:19 -0400
commit4c4ba2e0bc9ec663fa3772d2b088f736345a65a1 (patch)
treea03a2672bfe64141b46243274243377d86c73bb8 /coverage/plugin.py
parent236bc9317d208b24b418c9c167f22410613f4ade (diff)
downloadpython-coveragepy-git-4c4ba2e0bc9ec663fa3772d2b088f736345a65a1.tar.gz
refactor: pyupgrade --py36-plus coverage/*.py
Diffstat (limited to 'coverage/plugin.py')
-rw-r--r--coverage/plugin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/coverage/plugin.py b/coverage/plugin.py
index 6997b489..5b38e336 100644
--- a/coverage/plugin.py
+++ b/coverage/plugin.py
@@ -116,7 +116,7 @@ from coverage import files
from coverage.misc import contract, _needs_to_implement
-class CoveragePlugin(object):
+class CoveragePlugin:
"""Base class for coverage.py plug-ins."""
def file_tracer(self, filename): # pylint: disable=unused-argument
@@ -232,7 +232,7 @@ class CoveragePlugin(object):
return []
-class FileTracer(object):
+class FileTracer:
"""Support needed for files during the execution phase.
File tracer plug-ins implement subclasses of FileTracer to return from
@@ -315,7 +315,7 @@ class FileTracer(object):
return lineno, lineno
-class FileReporter(object):
+class FileReporter:
"""Support needed for files during the analysis and reporting phases.
File tracer plug-ins implement a subclass of `FileReporter`, and return
@@ -476,7 +476,7 @@ class FileReporter(object):
to {end}".
"""
- return "Line {start} didn't jump to line {end}".format(start=start, end=end)
+ return f"Line {start} didn't jump to line {end}"
def source_token_lines(self):
"""Generate a series of tokenized lines, one for each line in `source`.