From acbc4a1fc8eec139de5240cc7efea165b4622c86 Mon Sep 17 00:00:00 2001 From: Forest Date: Mon, 23 Sep 2024 14:53:59 -0700 Subject: [PATCH] imaplib: simplify example code in doc string This is for consistency with the documentation change in 8077f2eab287 and subsequent correction in 013bbf18fc42. --- Lib/imaplib.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.47.3