summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorLilKS <1244886+LilKS@users.noreply.github.com>2024-03-24 10:01:07 (GMT)
committerGitHub <noreply@github.com>2024-03-24 10:01:07 (GMT)
commit39df7732178c8e8f75b12f069a3dbc1715c99995 (patch)
treedc83892ba2c687f99da103ae51adcb94bf3109a2 /Doc
parenta1e948edba9ec6ba61365429857f7a087c5edf51 (diff)
downloadcpython-39df7732178c8e8f75b12f069a3dbc1715c99995.zip
cpython-39df7732178c8e8f75b12f069a3dbc1715c99995.tar.gz
cpython-39df7732178c8e8f75b12f069a3dbc1715c99995.tar.bz2
gh-101760: Improve the imaplib.IMAP4 example (#101764)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/imaplib.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/imaplib.rst b/Doc/library/imaplib.rst
index d5c868d..ccfd0cd 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')