From 8077f2eab287703b77350f1bfc9db2bd236dd9a7 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sat, 21 Sep 2024 10:40:51 -0700 Subject: [PATCH] docs: improve style in an example Co-authored-by: Peter Bierma --- Doc/library/imaplib.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Doc/library/imaplib.rst b/Doc/library/imaplib.rst index 936040c47d29..5fdea0b5b33f 100644 --- a/Doc/library/imaplib.rst +++ b/Doc/library/imaplib.rst @@ -333,9 +333,8 @@ An :class:`IMAP4` instance has the following methods: Example:: - with M.idle(dur=29*60) as idler: - for response in idler: - typ, datum = response + with M.idle(dur=29 * 60) as idler: + for type, datum in idler: print(typ, datum) ('EXISTS', b'1') -- 2.47.3