From 5e0627abd04b7d2c7ca47c6615bd14b31227eb4d Mon Sep 17 00:00:00 2001 From: David Smith Date: Thu, 21 Sep 2023 15:00:52 -0400 Subject: [PATCH] [codec] remove deprecated call to setDaemon (#131) Switching the `setDaemon` call to use the `daemon` property instead. In looking at the history of the `daemon` property, it's been present in python for more than 10 years so this shouldn't require special handling. --- spinel/codec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spinel/codec.py b/spinel/codec.py index 41f2736..68e1f61 100644 --- a/spinel/codec.py +++ b/spinel/codec.py @@ -604,7 +604,7 @@ def __init__(self): self.wpan_api = None self.__queue_prefix = queue.Queue() self.prefix_thread = threading.Thread(target=self.__run_prefix_handler) - self.prefix_thread.setDaemon(True) + self.prefix_thread.daemon = True self.prefix_thread.start() def handle_prefix_change(self, payload):