diff options
author | Mariatta Wijaya <Mariatta@users.noreply.github.com> | 2022-07-01 15:51:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 15:51:46 (GMT) |
commit | ad55147c1d5dbfc23d2ec4554f5e82c18984158c (patch) | |
tree | da6a30751ff7b42cd6325e94249952aa35daba73 | |
parent | 3abda7a38a2a6803d4dbf70c6ae097ad5b59c58d (diff) | |
download | cpython-ad55147c1d5dbfc23d2ec4554f5e82c18984158c.zip cpython-ad55147c1d5dbfc23d2ec4554f5e82c18984158c.tar.gz cpython-ad55147c1d5dbfc23d2ec4554f5e82c18984158c.tar.bz2 |
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.
-rw-r--r-- | Doc/library/queue.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/queue.rst b/Doc/library/queue.rst index 540dde9..c67f15e 100644 --- a/Doc/library/queue.rst +++ b/Doc/library/queue.rst @@ -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() |