Update code sample when importing modules in queue doc (GH-94244) (GH-94490)

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 ad55147c1d)

Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2022-07-01 09:14:39 -07:00 committed by GitHub
parent c4f82ea0de
commit 1b46df1e3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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()