From: Forest Date: Mon, 23 Sep 2024 21:53:59 +0000 (-0700) Subject: imaplib: simplify example code in doc string X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=acbc4a1fc8eec139de5240cc7efea165b4622c86;p=thirdparty%2FPython%2Fcpython.git imaplib: simplify example code in doc string This is for consistency with the documentation change in 8077f2eab287 and subsequent correction in 013bbf18fc42. --- diff --git a/Lib/imaplib.py b/Lib/imaplib.py index fec352e9b888..bbb844312153 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -667,8 +667,7 @@ class IMAP4: Example: with imap.idle(dur=29*60) as idler: - for response in idler: - typ, datum = response + for typ, datum in idler: print(typ, datum) Responses produced by the iterator are not added to the internal