summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-02-11 12:03:22 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2021-07-28 19:17:17 +0200
commit4aae136f1aaed2b245fda205c50602317e7fc76c (patch)
treed6166e68f04a9bf453cfdf2ed63d7c9db33e91b7
parentc430fec51c810c34dce8fd3f56b84a784e760df6 (diff)
buildman: 'Thread' object has no attribute 'isAlive'
The isAlive() method was deprecated in Python 3.8 and has been removed in Python 3.9. See https://bugs.python.org/issue37804. Use is_alive() instead. Since Python 2.6 is_alive() has been a synonym for isAlive(). So there should be no problems for users using elder Python 3 versions. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> (cherry picked from commit fd434f47d4d008d41f4ee2fe5cb94791f780395c)
-rw-r--r--tools/buildman/builder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/buildman/builder.py b/tools/buildman/builder.py
index f8e71de427..b2910e0648 100644
--- a/tools/buildman/builder.py
+++ b/tools/buildman/builder.py
@@ -1659,7 +1659,7 @@ class Builder:
term = threading.Thread(target=self.queue.join)
term.setDaemon(True)
term.start()
- while term.isAlive():
+ while term.is_alive():
term.join(100)
# Wait until we have processed all output