[3.12] gh-101760: Improve the imaplib.IMAP4 example (GH-101764) (#117191)

Co-authored-by: LilKS <1244886+LilKS@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2024-03-24 11:09:08 +01:00 committed by GitHub
parent 1d0e22e500
commit 4326e07a8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -622,7 +622,7 @@ retrieves and prints all messages::
import getpass, imaplib
M = imaplib.IMAP4()
M = imaplib.IMAP4(host='example.org')
M.login(getpass.getuser(), getpass.getpass())
M.select()
typ, data = M.search(None, 'ALL')