Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 0adacd9

Browse files
hugovkboogheta
authored andcommitted
Fix DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
1 parent bca38d0 commit 0adacd9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def do_HEAD(self):
4949

5050
httpd = SocketServer.TCPServer(("", 0), MyHandler)
5151
t = threading.Thread(target=httpd.serve_forever)
52-
t.setDaemon(True)
52+
t.daemon = True
5353
t.start()
5454
port = httpd.server_address[1]
5555
yield functools.partial(url, port)

0 commit comments

Comments
 (0)