https://github.com/python/cpython/commit/39df7732178c8e8f75b12f069a3dbc1715c99995
commit: 39df7732178c8e8f75b12f069a3dbc1715c99995
branch: main
author: LilKS <[email protected]>
committer: hugovk <[email protected]>
date: 2024-03-24T04:01:07-06:00
summary:

gh-101760: Improve the imaplib.IMAP4 example (#101764)

Co-authored-by: Adam Turner <[email protected]>

files:
M Doc/library/imaplib.rst

diff --git a/Doc/library/imaplib.rst b/Doc/library/imaplib.rst
index d5c868def3b64f..ccfd0cd3dde109 100644
--- a/Doc/library/imaplib.rst
+++ b/Doc/library/imaplib.rst
@@ -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')

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to