Use is_set instead of isSet for Python 3.10 compatibility.

This commit is contained in:
Karthikeyan Singaravelan 2022-03-20 12:31:50 +05:30
parent f43ed60ce8
commit 7a0ca38ee6
3 changed files with 3 additions and 3 deletions

View File

@ -189,4 +189,4 @@ class ThreadOpenStack(threading.Thread):
def stopped(self): def stopped(self):
"""Return True is the thread is stopped.""" """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): def stopped(self):
"""Return True is the thread is stopped.""" """Return True is the thread is stopped."""
return self._stopper.isSet() return self._stopper.is_set()
def sort_stats(stats): def sort_stats(stats):

View File

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