diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-01 18:18:11 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-02 07:38:19 -0400 |
commit | 4c4ba2e0bc9ec663fa3772d2b088f736345a65a1 (patch) | |
tree | a03a2672bfe64141b46243274243377d86c73bb8 /coverage/pytracer.py | |
parent | 236bc9317d208b24b418c9c167f22410613f4ade (diff) | |
download | python-coveragepy-git-4c4ba2e0bc9ec663fa3772d2b088f736345a65a1.tar.gz |
refactor: pyupgrade --py36-plus coverage/*.py
Diffstat (limited to 'coverage/pytracer.py')
-rw-r--r-- | coverage/pytracer.py | 4 |
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", ) |