bpo-43723: Fix deprecation error caused by thread.setDaemon() (GH-25361)

This commit is contained in:
Christian Heimes 2021-04-12 13:12:36 +02:00 committed by GitHub
parent 3447750073
commit 95bbb331ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View file

@ -799,7 +799,7 @@ os.close(fd)
# Start the server thread and wait for it to be listening.
thread = threading.Thread(target=server)
thread.setDaemon(True)
thread.daemon = True
thread.start()
addr = q.get()