From dafd0b269babcaca00c20f0418f7cb5a2c431649 Mon Sep 17 00:00:00 2001 From: Mariatta Wijaya Date: Fri, 24 Jun 2022 13:36:22 -0700 Subject: [PATCH] Update code sample when importing modules in queue doc 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. --- Doc/library/queue.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/queue.rst b/Doc/library/queue.rst index 540dde9e154e80..c67f15e953bccc 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()