◐ Shell
clean mode source ↗

bpo-43723: Fix deprecation error caused by thread.setDaemon() (GH-25361) by tiran · Pull Request #25361 · python/cpython

Expand Up @@ -221,7 +221,7 @@ def run(): 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. Expand Down Expand Up @@ -328,7 +328,7 @@ def run(): 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: Expand Down Expand Up @@ -460,7 +460,7 @@ def run(): 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: Expand Down