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
e87875bf
Commit
e87875bf
authored
Nov 10, 2010
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix test_imaplib failure
parent
5466e920
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Lib/imaplib.py
Lib/imaplib.py
+6
-3
No files found.
Lib/imaplib.py
View file @
e87875bf
...
...
@@ -818,7 +818,7 @@ class IMAP4:
def
_check_bye
(
self
):
bye
=
self
.
untagged_responses
.
get
(
'BYE'
)
if
bye
:
raise
self
.
abort
(
bye
[
-
1
])
raise
self
.
abort
(
bye
[
-
1
]
.
decode
(
'ascii'
,
'replace'
)
)
def
_command
(
self
,
name
,
*
args
):
...
...
@@ -899,14 +899,17 @@ class IMAP4:
def
_command_complete
(
self
,
name
,
tag
):
self
.
_check_bye
()
# BYE is expected after LOGOUT
if
name
!=
'LOGOUT'
:
self
.
_check_bye
()
try
:
typ
,
data
=
self
.
_get_tagged_response
(
tag
)
except
self
.
abort
as
val
:
raise
self
.
abort
(
'command: %s => %s'
%
(
name
,
val
))
except
self
.
error
as
val
:
raise
self
.
error
(
'command: %s => %s'
%
(
name
,
val
))
self
.
_check_bye
()
if
name
!=
'LOGOUT'
:
self
.
_check_bye
()
if
typ
==
'BAD'
:
raise
self
.
error
(
'%s command error: %s %s'
%
(
name
,
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