From c3deda62ce6106f6477bc04f3694c7e49e2292a4 Mon Sep 17 00:00:00 2001 From: Andrei Ivanov Date: Wed, 9 Oct 2024 16:42:30 -0700 Subject: [PATCH] Resolving warnings caused by deprecated function usage. --- tools/distgraphlaunch.py | 2 +- tools/launch.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/distgraphlaunch.py b/tools/distgraphlaunch.py index 856cf10c3df4..6c5866f2e94f 100644 --- a/tools/distgraphlaunch.py +++ b/tools/distgraphlaunch.py @@ -129,7 +129,7 @@ def run(ssh_cmd): subprocess.check_call(ssh_cmd, shell=True) thread = Thread(target=run, args=(ssh_cmd,)) - thread.setDaemon(True) + thread.daemon = True thread.start() return thread diff --git a/tools/launch.py b/tools/launch.py index 53d314111621..bf04df51b66f 100644 --- a/tools/launch.py +++ b/tools/launch.py @@ -145,7 +145,7 @@ def run(ssh_cmd, state_q): state_q, ), ) - thread.setDaemon(True) + thread.daemon = True thread.start() # sleep for a while in case of ssh is rejected by peer due to busy connection time.sleep(0.2)