mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
docs: correct mistake in imaplib example
This is a correction to 8077f2eab2, 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.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user