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
e87875bf
Kaydet (Commit)
e87875bf
authored
Kas 10, 2010
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Try to fix test_imaplib failure
üst
5466e920
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
imaplib.py
Lib/imaplib.py
+6
-3
No files found.
Lib/imaplib.py
Dosyayı görüntüle @
e87875bf
...
@@ -818,7 +818,7 @@ class IMAP4:
...
@@ -818,7 +818,7 @@ class IMAP4:
def
_check_bye
(
self
):
def
_check_bye
(
self
):
bye
=
self
.
untagged_responses
.
get
(
'BYE'
)
bye
=
self
.
untagged_responses
.
get
(
'BYE'
)
if
bye
:
if
bye
:
raise
self
.
abort
(
bye
[
-
1
])
raise
self
.
abort
(
bye
[
-
1
]
.
decode
(
'ascii'
,
'replace'
)
)
def
_command
(
self
,
name
,
*
args
):
def
_command
(
self
,
name
,
*
args
):
...
@@ -899,14 +899,17 @@ class IMAP4:
...
@@ -899,14 +899,17 @@ class IMAP4:
def
_command_complete
(
self
,
name
,
tag
):
def
_command_complete
(
self
,
name
,
tag
):
self
.
_check_bye
()
# BYE is expected after LOGOUT
if
name
!=
'LOGOUT'
:
self
.
_check_bye
()
try
:
try
:
typ
,
data
=
self
.
_get_tagged_response
(
tag
)
typ
,
data
=
self
.
_get_tagged_response
(
tag
)
except
self
.
abort
as
val
:
except
self
.
abort
as
val
:
raise
self
.
abort
(
'command:
%
s =>
%
s'
%
(
name
,
val
))
raise
self
.
abort
(
'command:
%
s =>
%
s'
%
(
name
,
val
))
except
self
.
error
as
val
:
except
self
.
error
as
val
:
raise
self
.
error
(
'command:
%
s =>
%
s'
%
(
name
,
val
))
raise
self
.
error
(
'command:
%
s =>
%
s'
%
(
name
,
val
))
self
.
_check_bye
()
if
name
!=
'LOGOUT'
:
self
.
_check_bye
()
if
typ
==
'BAD'
:
if
typ
==
'BAD'
:
raise
self
.
error
(
'
%
s command error:
%
s
%
s'
%
(
name
,
typ
,
data
))
raise
self
.
error
(
'
%
s command error:
%
s
%
s'
%
(
name
,
typ
,
data
))
return
typ
,
data
return
typ
,
data
...
...
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