Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
d659693b
Kaydet (Commit)
d659693b
authored
May 29, 1998
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
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.
üst
a119c0dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
imaplib.py
Lib/imaplib.py
+8
-2
No files found.
Lib/imaplib.py
Dosyayı görüntüle @
d659693b
...
@@ -781,9 +781,15 @@ def Time2Internaldate(date_time):
...
@@ -781,9 +781,15 @@ def Time2Internaldate(date_time):
if
__debug__
and
__name__
==
'__main__'
:
if
__debug__
and
__name__
==
'__main__'
:
host
=
''
import
sys
if
sys
.
argv
[
1
:]:
host
=
sys
.
argv
[
1
]
import
getpass
import
getpass
USER
=
getpass
.
getuser
()
USER
=
getpass
.
getuser
()
PASSWD
=
getpass
.
getpass
()
PASSWD
=
getpass
.
getpass
(
"IMAP password for
%
s: "
%
(
host
or
"localhost"
))
test_seq1
=
(
test_seq1
=
(
(
'login'
,
(
USER
,
PASSWD
)),
(
'login'
,
(
USER
,
PASSWD
)),
...
@@ -815,7 +821,7 @@ if __debug__ and __name__ == '__main__':
...
@@ -815,7 +821,7 @@ if __debug__ and __name__ == '__main__':
return
dat
return
dat
Debug
=
4
Debug
=
4
M
=
IMAP4
()
M
=
IMAP4
(
host
)
print
'PROTOCOL_VERSION =
%
s'
%
M
.
PROTOCOL_VERSION
print
'PROTOCOL_VERSION =
%
s'
%
M
.
PROTOCOL_VERSION
for
cmd
,
args
in
test_seq1
:
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