[PATCH v3 02/27] moveconfig: Avoid deprecation warning for setDaemon
Simon Glass
sjg at chromium.org
Sat Sep 23 21:43:51 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>
---
(no changes since v1)
tools/moveconfig.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/moveconfig.py b/tools/moveconfig.py
index 880a5594be05..2f7dee88c7ee 100755
--- a/tools/moveconfig.py
+++ b/tools/moveconfig.py
@@ -2029,7 +2029,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.42.0.515.g380fc7ccd1-goog
More information about the U-Boot
mailing list