summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMariatta Wijaya <Mariatta@users.noreply.github.com>2022-07-01 15:51:46 (GMT)
committerGitHub <noreply@github.com>2022-07-01 15:51:46 (GMT)
commitad55147c1d5dbfc23d2ec4554f5e82c18984158c (patch)
treeda6a30751ff7b42cd6325e94249952aa35daba73
parent3abda7a38a2a6803d4dbf70c6ae097ad5b59c58d (diff)
downloadcpython-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.rst3
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()