File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,12 @@ Unreleased
21
21
----------
22
22
23
23
- 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.
27
27
28
28
.. _pull 1381 : https://github.com/nedbat/coveragepy/pull/1381
29
+ .. _pull 1388 : https://github.com/nedbat/coveragepy/pull/1388
29
30
30
31
31
32
.. _changes_64 :
Original file line number Diff line number Diff line change @@ -67,11 +67,10 @@ def __init__(self):
67
67
# On exit, self.in_atexit = True
68
68
atexit .register (setattr , self , 'in_atexit' , True )
69
69
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.
72
72
self ._cached_bound_method_trace = self ._trace
73
73
74
-
75
74
def __repr__ (self ):
76
75
return "<PyTracer at 0x{:x}: {} lines in {} files>" .format (
77
76
id (self ),
@@ -289,7 +288,7 @@ def stop(self):
289
288
dont_warn = (env .PYPY and env .PYPYVERSION >= (5 , 4 ) and self .in_atexit and tf is None )
290
289
if (not dont_warn ) and tf != self ._cached_bound_method_trace : # pylint: disable=comparison-with-callable
291
290
self .warn (
292
- f "Trace function changed, data is likely wrong: "
291
+ "Trace function changed, data is likely wrong: " +
293
292
f"{ tf !r} != { self ._cached_bound_method_trace !r} " ,
294
293
slug = "trace-changed" ,
295
294
)
You can’t perform that action at this time.
0 commit comments