From: Gregory P. Smith Date: Sat, 21 Sep 2024 17:40:51 +0000 (-0700) Subject: docs: improve style in an example X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8077f2eab287703b77350f1bfc9db2bd236dd9a7;p=thirdparty%2FPython%2Fcpython.git docs: improve style in an example Co-authored-by: Peter Bierma --- 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')