Skip to content

Commit

Permalink
Use threading.Thread.is_alive() for Py3.9 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Feb 11, 2021
1 parent 98c4295 commit 600efee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magicbus/plugins/lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def EXIT(self):
# See http://www.cherrypy.org/ticket/751.
self.bus.log('Waiting for child threads to terminate...')
for t in threading.enumerate():
if t == threading.currentThread() or not t.isAlive():
if t == threading.current_thread() or not t.is_alive():
continue

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

0 comments on commit 600efee

Please sign in to comment.