Skip to content

Commit e55cd03

Browse files
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 ad55147) Co-authored-by: Mariatta Wijaya <[email protected]>
1 parent 259dd7e commit e55cd03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/queue.rst

+2-1
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)