Skip to content

Commit 600efee

Browse files
committed
Use threading.Thread.is_alive() for Py3.9 compat
1 parent 98c4295 commit 600efee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

magicbus/plugins/lifecycle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def EXIT(self):
4545
# See http://www.cherrypy.org/ticket/751.
4646
self.bus.log('Waiting for child threads to terminate...')
4747
for t in threading.enumerate():
48-
if t == threading.currentThread() or not t.isAlive():
48+
if t == threading.current_thread() or not t.is_alive():
4949
continue
5050

5151
# Note that any dummy (external) threads are always daemonic.

0 commit comments

Comments
 (0)