summaryrefslogtreecommitdiff
path: root/coverage/pytracer.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/pytracer.py
parent236bc9317d208b24b418c9c167f22410613f4ade (diff)
downloadpython-coveragepy-git-4c4ba2e0bc9ec663fa3772d2b088f736345a65a1.tar.gz
refactor: pyupgrade --py36-plus coverage/*.py
Diffstat (limited to 'coverage/pytracer.py')
-rw-r--r--coverage/pytracer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/pytracer.py b/coverage/pytracer.py
index ccc913a8..51f08a1b 100644
--- a/coverage/pytracer.py
+++ b/coverage/pytracer.py
@@ -18,7 +18,7 @@ YIELD_VALUE = dis.opmap['YIELD_VALUE']
THIS_FILE = __file__.rstrip("co")
-class PyTracer(object):
+class PyTracer:
"""Python implementation of the raw data tracer."""
# Because of poor implementations of trace-function-manipulating tools,
@@ -255,7 +255,7 @@ class PyTracer(object):
dont_warn = (env.PYPY and env.PYPYVERSION >= (5, 4) and self.in_atexit and tf is None)
if (not dont_warn) and tf != self._trace: # pylint: disable=comparison-with-callable
self.warn(
- "Trace function changed, measurement is likely wrong: %r" % (tf,),
+ f"Trace function changed, measurement is likely wrong: {tf!r}",
slug="trace-changed",
)