diff options
| author | Simon Glass <[email protected]> | 2023-09-23 13:43:51 -0600 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2023-10-04 09:25:20 -0600 |
| commit | ad1f187c18c65a3c0fe09c8a2dbba26ee8173098 (patch) | |
| tree | eef275d97a59ac317dd44b7e26a2b2ea689a1998 | |
| parent | 63df202ad88fdd36deb8cd55eabe72db110962cb (diff) | |
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 <[email protected]>
| -rwxr-xr-x | tools/moveconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/moveconfig.py b/tools/moveconfig.py index 880a5594be0..2f7dee88c7e 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() |
