From a2ff2c00164689a7051c0a3206e9a497db142f2a Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Sun, 18 Aug 2024 18:23:48 +0200 Subject: [PATCH] board-conf-tools: Avoid Thread.setDaemon Deprecated since Python 3.10, and we are on 3.11. Signed-off-by: Jan Kiszka --- .../board-conf-tools/files/board-conf-tools/iot2050setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes-app/board-conf-tools/files/board-conf-tools/iot2050setup.py b/recipes-app/board-conf-tools/files/board-conf-tools/iot2050setup.py index 07ca594f1..1c0f9f79d 100755 --- a/recipes-app/board-conf-tools/files/board-conf-tools/iot2050setup.py +++ b/recipes-app/board-conf-tools/files/board-conf-tools/iot2050setup.py @@ -23,8 +23,7 @@ def threadDecorator(func): def wrapper(*args, **kwargs): - thread = threading.Thread(target=func, args=args, kwargs=kwargs) - thread.setDaemon(True) + thread = threading.Thread(target=func, args=args, kwargs=kwargs, daemon=True) thread.start() thread.join(3) if thread.is_alive():