From e047d7953f0ff940bcd10737204a44f42929dc82 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 20 Oct 2009 03:14:10 +0000 Subject: [PATCH] use property api --- Doc/library/queue.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/queue.rst b/Doc/library/queue.rst index ea579f94701..65b16a339ab 100644 --- a/Doc/library/queue.rst +++ b/Doc/library/queue.rst @@ -183,7 +183,7 @@ Example of how to wait for enqueued tasks to be completed:: q = Queue() for i in range(num_worker_threads): t = Thread(target=worker) - t.setDaemon(True) + t.daemon = True t.start() for item in source():