
10 Aug
2023
10 Aug
'23
6:31 p.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 ---
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