Merge pull request #2018 from tirkarthi/fix-threading

Use is_set instead of isSet for Python 3.10 compatibility.
pull/2023/head
Nicolas Hennion 2022-03-20 08:59:25 +01:00 committed by GitHub
commit 5b655be232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -189,4 +189,4 @@ class ThreadOpenStack(threading.Thread):
def stopped(self):
"""Return True is the thread is stopped."""
return self._stopper.isSet()
return self._stopper.is_set()

View File

@ -723,7 +723,7 @@ class ThreadDockerGrabber(threading.Thread):
def stopped(self):
"""Return True is the thread is stopped."""
return self._stopper.isSet()
return self._stopper.is_set()
def sort_stats(stats):

View File

@ -256,7 +256,7 @@ class ThreadScanner(threading.Thread):
def stopped(self):
"""Return True is the thread is stopped."""
return self._stopper.isSet()
return self._stopper.is_set()
def _web_scan(self, web):
"""Scan the Web/URL (dict) and update the status key."""