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/tests/commands/test_runbuilds.py | |
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/tests/commands/test_runbuilds.py')
-rw-r--r-- | bitbake/lib/toaster/tests/commands/test_runbuilds.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/tests/commands/test_runbuilds.py b/bitbake/lib/toaster/tests/commands/test_runbuilds.py index e223b95fcb..c77d6cf490 100644 --- a/bitbake/lib/toaster/tests/commands/test_runbuilds.py +++ b/bitbake/lib/toaster/tests/commands/test_runbuilds.py | |||
@@ -24,7 +24,7 @@ class KillRunbuilds(threading.Thread): | |||
24 | """ Kill the runbuilds process after an amount of time """ | 24 | """ Kill the runbuilds process after an amount of time """ |
25 | def __init__(self, *args, **kwargs): | 25 | def __init__(self, *args, **kwargs): |
26 | super(KillRunbuilds, self).__init__(*args, **kwargs) | 26 | super(KillRunbuilds, self).__init__(*args, **kwargs) |
27 | self.setDaemon(True) | 27 | self.daemon = True |
28 | 28 | ||
29 | def run(self): | 29 | def run(self): |
30 | time.sleep(5) | 30 | time.sleep(5) |