From: Richard Purdie Date: Sat, 21 Nov 2020 10:50:07 +0000 (+0000) Subject: oeqa/commands: Fix compatibility with python 3.9 X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~9522 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bb06428cbb2ac0f3d98a1696f050d3393385503;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git oeqa/commands: Fix compatibility with python 3.9 Python 3.9 dropped isAlive() so use the preferred is_alive(). Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py index 8059cbce3e1..6c1535ddfbf 100644 --- a/meta/lib/oeqa/utils/commands.py +++ b/meta/lib/oeqa/utils/commands.py @@ -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()