From 5ea18279ed275d0af6cf81f514229ac8196cf828 Mon Sep 17 00:00:00 2001 From: Karthikeyan Singaravelan Date: Sat, 8 May 2021 06:47:58 +0000 Subject: [PATCH] Set daemon attribute instead of using setDaemon method that was deprecated in Python 3.10 --- apns2/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apns2/client.py b/apns2/client.py index baacd61..ecb20e6 100644 --- a/apns2/client.py +++ b/apns2/client.py @@ -84,7 +84,7 @@ def watchdog() -> None: time.sleep(heartbeat_period) thread = Thread(target=watchdog) - thread.setDaemon(True) + thread.daemon = True thread.start() def send_notification(self, token_hex: str, notification: Payload, topic: Optional[str] = None,