]> granicus.if.org Git - python/commitdiff
use property api
authorBenjamin Peterson <benjamin@python.org>
Tue, 20 Oct 2009 03:14:10 +0000 (03:14 +0000)
committerBenjamin Peterson <benjamin@python.org>
Tue, 20 Oct 2009 03:14:10 +0000 (03:14 +0000)
Doc/library/queue.rst

index ea579f94701dcd7fdb474b3cff6bf84415447aa6..65b16a339ab9c5f2df1ce2192471180a38220aaa 100644 (file)
@@ -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():