Skip to content

Commit

Permalink
docs: correct mistake in imaplib example
Browse files Browse the repository at this point in the history
This is a correction to 8077f2e, 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.
  • Loading branch information
foresto committed Sep 22, 2024
1 parent 48f6f76 commit 013bbf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/imaplib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 013bbf1

Please sign in to comment.