mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
restore isAlive method removed in python 3.9
This commit is contained in:
parent
781a25512b
commit
55e76c0b80
1 changed files with 3 additions and 0 deletions
|
|
@ -120,3 +120,6 @@ class JailThread(Thread):
|
|||
## 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue