Skip to content

Commit bc7dc91

Browse files
Mariattamiss-islington
authored andcommitted
Update code sample when importing modules in queue doc (pythonGH-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. (cherry picked from commit ad55147) Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
1 parent 259dd7e commit bc7dc91

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/library/queue.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ fully processed by daemon consumer threads.
190190

191191
Example of how to wait for enqueued tasks to be completed::
192192

193-
import threading, queue
193+
import threading
194+
import queue
194195

195196
q = queue.Queue()
196197

0 commit comments

Comments
 (0)