diff options
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", ) |