Skip to content

Commit

Permalink
[codec] remove deprecated call to setDaemon (openthread#131)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mmb-davidsmith authored Sep 21, 2023
1 parent 9250758 commit 5e0627a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spinel/codec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5e0627a

Please sign in to comment.