summaryrefslogtreecommitdiffstats
path: root/Doc/library/imaplib.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/imaplib.rst')
-rw-r--r--Doc/library/imaplib.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/imaplib.rst b/Doc/library/imaplib.rst
index e18d7d5..e0b824e 100644
--- a/Doc/library/imaplib.rst
+++ b/Doc/library/imaplib.rst
@@ -521,7 +521,8 @@ IMAP4 Example
Here is a minimal example (without error checking) that opens a mailbox and
retrieves and prints all messages::
- import getpass, imaplib
+ import getpass
+ import imaplib
M = imaplib.IMAP4()
M.login(getpass.getuser(), getpass.getpass())