From 0f23680052d45222e8aea6d52525eac37c966871 Mon Sep 17 00:00:00 2001 From: Karthikeyan Singaravelan Date: Sat, 11 Jul 2020 04:35:21 +0000 Subject: [PATCH] Use is_alive in favour of isAlive for Python 3.9 compatibility. --- decorators/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decorators/decorators.py b/decorators/decorators.py index de4876b1..a445f747 100755 --- a/decorators/decorators.py +++ b/decorators/decorators.py @@ -76,7 +76,7 @@ def wrapper(*args, **kwargs): thd = KThread(target=_new_func, args=(), kwargs=new_kwargs) thd.start() thd.join(seconds) - alive = thd.isAlive() + alive = thd.is_alive() thd.kill() # kill the child thread if alive: