mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Update code sample when importing modules in queue doc (GH-94244)
In the queue documentation, the code snippet shows the import to be not PEP 8 compliant. Since people typically copy-paste from such code samples, I think it's important to show best-practices here.
This commit is contained in:
parent
3abda7a38a
commit
ad55147c1d
1 changed files with 2 additions and 1 deletions
|
|
@ -190,7 +190,8 @@ fully processed by daemon consumer threads.
|
|||
|
||||
Example of how to wait for enqueued tasks to be completed::
|
||||
|
||||
import threading, queue
|
||||
import threading
|
||||
import queue
|
||||
|
||||
q = queue.Queue()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue