1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

dist/tools/pyterm: avoid deprecated .setDaemon

Set .daemon property instead of calling .setDaemon()
This commit is contained in:
Kees Bakker 2022-09-26 21:30:24 +02:00
parent 72d16e152a
commit 627e40ae6b

View File

@ -285,8 +285,7 @@ class SerCmd(cmd.Cmd):
self.onecmd(self.precmd(command))
# start serial->console thread
receiver_thread = threading.Thread(target=self.reader)
receiver_thread.setDaemon(1)
receiver_thread = threading.Thread(target=self.reader, daemon=True)
receiver_thread.start()
def precmd(self, line):