Skip to content

Commit 013bbf1

Browse files
committed
docs: correct mistake in imaplib example
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.
1 parent 48f6f76 commit 013bbf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/imaplib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ An :class:`IMAP4` instance has the following methods:
334334
Example::
335335

336336
with M.idle(dur=29 * 60) as idler:
337-
for type, datum in idler:
337+
for typ, datum in idler:
338338
print(typ, datum)
339339

340340
('EXISTS', b'1')

0 commit comments

Comments
 (0)