
15 Sep
2023
15 Sep
'23
2:22 a.m.
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@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.459.ge4e396fd5e-goog