diff options
-rw-r--r-- | Doc/library/queue.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/queue.rst b/Doc/library/queue.rst index ea579f9470..65b16a339a 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(): |