1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-28 07:51:19 +01:00

Merge pull request #18754 from keestux/avoid-using-deprecated

dist/tools/pyterm: avoid deprecated .setDaemon
This commit is contained in:
Martine Lenders 2022-10-21 07:21:49 +02:00 committed by GitHub
commit 9734f6f980
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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):