[PATCH 03/28] moveconfig: Avoid deprecation warning for setDaemon
Simon Glass
sjg at chromium.org
Thu Aug 10 18:31:35 CEST 2023
Use the recommended new way of setting a thread to be a daemon.
This avoids a warning:
DeprecationWarning: setDaemon() is deprecated, set the daemon attribute
instead
Signed-off-by: Simon Glass <sjg at chromium.org>
---
tools/moveconfig.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/moveconfig.py b/tools/moveconfig.py
index 7b7426726bd..446b68bcd10 100755
--- a/tools/moveconfig.py
+++ b/tools/moveconfig.py
@@ -2027,7 +2027,7 @@ doc/develop/moveconfig.rst for documentation.'''
config_db = {}
db_queue = queue.Queue()
t = DatabaseThread(config_db, db_queue)
- t.setDaemon(True)
+ t.daemon = True
t.start()
check_clean_directory()
--
2.41.0.640.ga95def55d0-goog
More information about the U-Boot
mailing list