From: Simon Glass Date: Sat, 23 Sep 2023 19:43:51 +0000 (-0600) Subject: moveconfig: Avoid deprecation warning for setDaemon X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=ad1f187c18c65a3c0fe09c8a2dbba26ee8173098;p=u-boot.git moveconfig: Avoid deprecation warning for setDaemon 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 --- diff --git a/tools/moveconfig.py b/tools/moveconfig.py index 880a5594be..2f7dee88c7 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()