diff options
author | Tim Orling <ticotimo@gmail.com> | 2023-01-21 13:52:00 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-24 21:59:44 +0000 |
commit | 4d1675beac04b0b73b1f33bb26159d41c55e3bb7 (patch) | |
tree | e65169643694d76054a8405da19179ca24953934 /bitbake/lib/toaster/orm | |
parent | ea12b673cfe5253c2c3baf3325718156b82cad1b (diff) | |
download | poky-4d1675beac04b0b73b1f33bb26159d41c55e3bb7.tar.gz |
bitbake: bitbake: fix deprecated threading.Thread.setDaemon
Deprecated in Python 3.10:
https://docs.python.org/3/whatsnew/3.10.html#deprecated
https://github.com/python/cpython/pull/25174
Fixes warnings like:
...bitbake/lib/bb/ui/uievent.py:68: DeprecationWarning: setDaemon() is
deprecated, set the daemon attribute instead
self.t.setDaemon(True)
(Bitbake rev: 323f6ce27a1bfd7159e72f29684674ff495dedee)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/orm')
-rw-r--r-- | bitbake/lib/toaster/orm/management/commands/lsupdates.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/orm/management/commands/lsupdates.py b/bitbake/lib/toaster/orm/management/commands/lsupdates.py index eb097555e2..6d64830ebd 100644 --- a/bitbake/lib/toaster/orm/management/commands/lsupdates.py +++ b/bitbake/lib/toaster/orm/management/commands/lsupdates.py | |||
@@ -40,7 +40,7 @@ class Spinner(threading.Thread): | |||
40 | """ A simple progress spinner to indicate download/parsing is happening""" | 40 | """ A simple progress spinner to indicate download/parsing is happening""" |
41 | def __init__(self, *args, **kwargs): | 41 | def __init__(self, *args, **kwargs): |
42 | super(Spinner, self).__init__(*args, **kwargs) | 42 | super(Spinner, self).__init__(*args, **kwargs) |
43 | self.setDaemon(True) | 43 | self.daemon = True |
44 | self.signal = True | 44 | self.signal = True |
45 | 45 | ||
46 | def run(self): | 46 | def run(self): |