Skip to content

Commit 59f83e1

Browse files
tirkarthiauvipy
authored andcommitted
Use is_alive instead of isAlive for Python 3.9 compatibility. (celery#5898)
1 parent 47d3ef1 commit 59f83e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

celery/utils/timer2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def stop(self):
102102
self.running = False
103103

104104
def ensure_started(self):
105-
if not self.running and not self.isAlive():
105+
if not self.running and not self.is_alive():
106106
if self.on_start:
107107
self.on_start(self)
108108
self.start()

0 commit comments

Comments
 (0)