mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-26 10:42:29 +03:00
Use is_set instead of isSet for Python 3.10 compatibility.
This commit is contained in:
parent
f43ed60ce8
commit
7a0ca38ee6
@ -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()
|
||||||
|
@ -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):
|
||||||
|
@ -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."""
|
||||||
|
Loading…
Reference in New Issue
Block a user