summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2021-04-12 11:12:36 (GMT)
committerGitHub <noreply@github.com>2021-04-12 11:12:36 (GMT)
commit95bbb331ecb3ef5d05859d90b287cc3d27613c86 (patch)
treee34682d708083b4c2f4bbae5e20f55835a711d8e /Tools
parent3447750073aff229b049e4ccd6217db2811dcfd1 (diff)
downloadcpython-95bbb331ecb3ef5d05859d90b287cc3d27613c86.zip
cpython-95bbb331ecb3ef5d05859d90b287cc3d27613c86.tar.gz
cpython-95bbb331ecb3ef5d05859d90b287cc3d27613c86.tar.bz2
bpo-43723: Fix deprecation error caused by thread.setDaemon() (GH-25361)
Diffstat (limited to 'Tools')
-rw-r--r--Tools/ccbench/ccbench.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/ccbench/ccbench.py b/Tools/ccbench/ccbench.py
index ab1465a..d52701a 100644
--- a/Tools/ccbench/ccbench.py
+++ b/Tools/ccbench/ccbench.py
@@ -221,7 +221,7 @@ def run_throughput_test(func, args, nthreads):
for i in range(nthreads):
threads.append(threading.Thread(target=run))
for t in threads:
- t.setDaemon(True)
+ t.daemon = True
t.start()
# We don't want measurements to include thread startup overhead,
# so we arrange for timing to start after all threads are ready.
@@ -328,7 +328,7 @@ def run_latency_test(func, args, nthreads):
for i in range(nthreads):
threads.append(threading.Thread(target=run))
for t in threads:
- t.setDaemon(True)
+ t.daemon = True
t.start()
# Wait for threads to be ready
with ready_cond:
@@ -460,7 +460,7 @@ def run_bandwidth_test(func, args, nthreads):
for i in range(nthreads):
threads.append(threading.Thread(target=run))
for t in threads:
- t.setDaemon(True)
+ t.daemon = True
t.start()
# Wait for threads to be ready
with ready_cond: