Skip to content

Commit

Permalink
restore isAlive method removed in python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
sebres committed Mar 6, 2020
1 parent 781a255 commit 55e76c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fail2ban/server/jailthread.py
Expand Up @@ -120,3 +120,6 @@ def join(self):
## python 2.x replace binding of private __bootstrap method:
if sys.version_info < (3,): # pragma: 3.x no cover
JailThread._Thread__bootstrap = JailThread._JailThread__bootstrap
## python 3.9, restore isAlive method:
elif not hasattr(JailThread, 'isAlive'): # pragma: 2.x no cover
JailThread.isAlive = JailThread.is_alive

0 comments on commit 55e76c0

Please sign in to comment.