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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user