From 250cf82a32836244c06c90cee7b6a7fdcced74c3 Mon Sep 17 00:00:00 2001 From: Matej Urbas Date: Fri, 22 Jan 2021 21:11:24 +0000 Subject: [PATCH] uses threading.Thread.is_alive instead of isAlive The method threading.Thread.isAlive has been removed in Python 3. See [Python's threading docs](https://docs.python.org/3/library/threading.html#threading.Thread.is_alive). --- coapthon/client/coap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coapthon/client/coap.py b/coapthon/client/coap.py index 5a3747c..0bf3e28 100644 --- a/coapthon/client/coap.py +++ b/coapthon/client/coap.py @@ -178,7 +178,7 @@ class CoAP(object): if opt.value == 26: return - if self._receiver_thread is None or not self._receiver_thread.isAlive(): + if self._receiver_thread is None or not self._receiver_thread.is_alive(): self._receiver_thread = threading.Thread(target=self.receive_datagram) self._receiver_thread.daemon = True self._receiver_thread.start()