Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d659693b
Commit
d659693b
authored
May 29, 1998
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve the self-test code a bit: read a host from sys.argv[1] if set,
and list the host name when prompting for the password.
parent
a119c0dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Lib/imaplib.py
Lib/imaplib.py
+8
-2
No files found.
Lib/imaplib.py
View file @
d659693b
...
...
@@ -781,9 +781,15 @@ def Time2Internaldate(date_time):
if __debug__ and __name__ == '
__main__
':
host = ''
import sys
if sys.argv[1:]:
host = sys.argv[1]
import getpass
USER = getpass.getuser()
PASSWD = getpass.getpass()
PASSWD = getpass.getpass(
"IMAP password for %s: " % (host or "localhost"))
test_seq1 = (
('
login
', (USER, PASSWD)),
...
...
@@ -815,7 +821,7 @@ if __debug__ and __name__ == '__main__':
return dat
Debug = 4
M = IMAP4()
M = IMAP4(
host
)
print '
PROTOCOL_VERSION
=
%
s
' % M.PROTOCOL_VERSION
for cmd,args in test_seq1:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment