Skip to content

Commit 73f4a67

Browse files
committed
docs: mentioned pull #1388
1 parent f40da64 commit 73f4a67

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

CHANGES.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ Unreleased
2121
----------
2222

2323
- Greatly improved performance on PyPy, and other environments that need the
24-
pure Python trace function. Thanks, `Carl Friedrich Bolz-Tereick
25-
<pull 1381_>`_. Slightly improved performance when using the C trace
26-
function, as most environments do.
24+
pure Python trace function. Thanks, Carl Friedrich Bolz-Tereick (`pull
25+
1381`_ and `pull 1388`_). Slightly improved performance when using the C
26+
trace function, as most environments do.
2727

2828
.. _pull 1381: https://github.com/nedbat/coveragepy/pull/1381
29+
.. _pull 1388: https://github.com/nedbat/coveragepy/pull/1388
2930

3031

3132
.. _changes_64:

coverage/pytracer.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,10 @@ def __init__(self):
6767
# On exit, self.in_atexit = True
6868
atexit.register(setattr, self, 'in_atexit', True)
6969

70-
# cache a bound method on the instance, so that we don't have to
71-
# re-create a bound method object all the time
70+
# Cache a bound method on the instance, so that we don't have to
71+
# re-create a bound method object all the time.
7272
self._cached_bound_method_trace = self._trace
7373

74-
7574
def __repr__(self):
7675
return "<PyTracer at 0x{:x}: {} lines in {} files>".format(
7776
id(self),
@@ -289,7 +288,7 @@ def stop(self):
289288
dont_warn = (env.PYPY and env.PYPYVERSION >= (5, 4) and self.in_atexit and tf is None)
290289
if (not dont_warn) and tf != self._cached_bound_method_trace: # pylint: disable=comparison-with-callable
291290
self.warn(
292-
f"Trace function changed, data is likely wrong: "
291+
"Trace function changed, data is likely wrong: " +
293292
f"{tf!r} != {self._cached_bound_method_trace!r}",
294293
slug="trace-changed",
295294
)

0 commit comments

Comments
 (0)