From: Forest Date: Sun, 22 Sep 2024 23:47:22 +0000 (-0700) Subject: docs: correct mistake in imaplib example X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=013bbf18fc421956041416ce7c6ff98d9d137b5c;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Doc/library/imaplib.rst b/Doc/library/imaplib.rst index 6731c60228a0..757cd715704a 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')