mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Merge: #25591: improve imap tests.
This commit is contained in:
commit
a7613aa06c
2 changed files with 331 additions and 1 deletions
|
@ -419,7 +419,7 @@ class IMAP4:
|
|||
self.literal = _Authenticator(authobject).process
|
||||
typ, dat = self._simple_command('AUTHENTICATE', mech)
|
||||
if typ != 'OK':
|
||||
raise self.error(dat[-1])
|
||||
raise self.error(dat[-1].decode('utf-8', 'replace'))
|
||||
self.state = 'AUTH'
|
||||
return typ, dat
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue