]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
buildman: 'Thread' object has no attribute 'isAlive'
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 11 Feb 2021 11:03:22 +0000 (12:03 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 14 Feb 2021 10:32:04 +0000 (11:32 +0100)
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>
tools/buildman/builder.py

index c93946842a3562866eabaad8109faae6f99dab72..6f6d759329a08aa13196b2975ffe7c60e629e371 100644 (file)
@@ -1691,7 +1691,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