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:
parent
72d16e152a
commit
627e40ae6b
3
dist/tools/pyterm/pyterm
vendored
3
dist/tools/pyterm/pyterm
vendored
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user