]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/commands: Fix compatibility with python 3.9
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 21 Nov 2020 10:50:07 +0000 (10:50 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Nov 2020 10:27:39 +0000 (10:27 +0000)
Python 3.9 dropped isAlive() so use the preferred is_alive().

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/commands.py

index 8059cbce3e1138d6d46b170ccf9cc68d5ec8087a..6c1535ddfbf08a301b08bd582a5e11d6b06ba42b 100644 (file)
@@ -125,11 +125,11 @@ class Command(object):
 
     def stop(self):
         for thread in self.threads:
-            if thread.isAlive():
+            if thread.is_alive():
                 self.process.terminate()
             # let's give it more time to terminate gracefully before killing it
             thread.join(5)
-            if thread.isAlive():
+            if thread.is_alive():
                 self.process.kill()
                 thread.join()