diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-07-01 16:15:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 16:15:06 (GMT) |
commit | e55cd03c156e6e95d3ef70cd6dbb254b3869fd77 (patch) | |
tree | 5f97655257403373051ae750e115c7674b7cf427 /Doc/library | |
parent | 259dd7ee8af54e3328ebf41131364b811c055814 (diff) | |
download | cpython-e55cd03c156e6e95d3ef70cd6dbb254b3869fd77.zip cpython-e55cd03c156e6e95d3ef70cd6dbb254b3869fd77.tar.gz cpython-e55cd03c156e6e95d3ef70cd6dbb254b3869fd77.tar.bz2 |
Update code sample when importing modules in queue doc (GH-94244) (GH-94491)
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.
(cherry picked from commit ad55147c1d5dbfc23d2ec4554f5e82c18984158c)
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
Diffstat (limited to 'Doc/library')
-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() |