Support newer python is_alive method name

Python changed isAlive to is_alive, check and adapt
if the running python killed off the isAlive name.

Change-Id: I0369aab0308d6f2d9d7de489b6e1f9c3f2365204
This commit is contained in:
Jarrod Johnson
2022-10-13 18:01:24 -04:00
parent 25b955d3f5
commit 2557e83957

View File

@@ -60,6 +60,8 @@ class FileUploader(threading.Thread):
self.formwrap = formwrap
self.excepterror = excepterror
super(FileUploader, self).__init__()
if not hasattr(self, 'isAlive'):
self.isAlive = self.is_alive
def run(self):
try:
@@ -84,6 +86,8 @@ class FileDownloader(threading.Thread):
self.savefile = savefile
self.exc = None
super(FileDownloader, self).__init__()
if not hasattr(self, 'isAlive'):
self.isAlive = self.is_alive
def run(self):
try: