From: Mariatta Wijaya Date: Fri, 1 Jul 2022 15:51:46 +0000 (-0700) Subject: Update code sample when importing modules in queue doc (GH-94244) X-Git-Tag: v3.12.0a1~1046 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad55147c1d5dbfc23d2ec4554f5e82c18984158c;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Doc/library/queue.rst b/Doc/library/queue.rst index 540dde9e154e..c67f15e953bc 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()