From fc927ccaacf12ddc1f33fc4eb443a2744e37bd51 Mon Sep 17 00:00:00 2001 From: heck Date: Thu, 25 Mar 2021 18:29:02 +0100 Subject: [PATCH] FIX: thread.isAlive() replaced with thread.is_alive() (deprecated) --- src/pEp/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pEp/__init__.py b/src/pEp/__init__.py index d634425..2c0bcf3 100755 --- a/src/pEp/__init__.py +++ b/src/pEp/__init__.py @@ -54,7 +54,7 @@ def shutdown_sync() -> None : def is_sync_active() -> bool: """True if sync is active, False otherwise""" - return Sync.getInstance().isAlive() + return Sync.getInstance().is_alive() def message_to_send(msg): @@ -123,7 +123,7 @@ class Sync(Thread): @staticmethod def shutdown_sync(): if Sync.__instance: - if Sync.__instance.isAlive(): + if Sync.__instance.is_alive(): pEp.inject_sync_shutdown() Sync.__instance.join() Sync.__instance = None