]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
docs: improve style in an example
authorGregory P. Smith <greg@krypto.org>
Sat, 21 Sep 2024 17:40:51 +0000 (10:40 -0700)
committerGitHub <noreply@github.com>
Sat, 21 Sep 2024 17:40:51 +0000 (10:40 -0700)
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Doc/library/imaplib.rst

index 936040c47d29d5ebd95b3725dc40e707f39c000f..5fdea0b5b33fd763773e4da8e873fb3745245da4 100644 (file)
@@ -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')