From 013bbf18fc421956041416ce7c6ff98d9d137b5c Mon Sep 17 00:00:00 2001 From: Forest Date: Sun, 22 Sep 2024 16:47:22 -0700 Subject: [PATCH] docs: correct mistake in imaplib example This is a correction to 8077f2eab287703b77350f1bfc9db2bd236dd9a7, which changed a variable name in only one place and broke the subsequent reference to it, departed from the naming convention used in the rest of the module, and shadowed the type() builtin along the way. --- Doc/library/imaplib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/imaplib.rst b/Doc/library/imaplib.rst index 6731c60228a04b..757cd715704a04 100644 --- a/Doc/library/imaplib.rst +++ b/Doc/library/imaplib.rst @@ -334,7 +334,7 @@ An :class:`IMAP4` instance has the following methods: Example:: with M.idle(dur=29 * 60) as idler: - for type, datum in idler: + for typ, datum in idler: print(typ, datum) ('EXISTS', b'1')