summaryrefslogtreecommitdiffstats
path: root/Lib/imaplib.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2016-12-25 02:32:26 (GMT)
committerR David Murray <rdmurray@bitdance.com>2016-12-25 02:32:26 (GMT)
commitb079c07f7df2e8640c36d689704b23227412b2d5 (patch)
treedfaa298745d151a0e92af53d0c14fb65a67b4650 /Lib/imaplib.py
parente9ae5f9b1673145eb81f1a19860b3d7a2decfd9c (diff)
downloadcpython-b079c07f7df2e8640c36d689704b23227412b2d5.zip
cpython-b079c07f7df2e8640c36d689704b23227412b2d5.tar.gz
cpython-b079c07f7df2e8640c36d689704b23227412b2d5.tar.bz2
#25591: improve imap tests.
Patch by Maciej Szulik.
Diffstat (limited to 'Lib/imaplib.py')
-rw-r--r--Lib/imaplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/imaplib.py b/Lib/imaplib.py
index 4e8a4bb..2f7e933 100644
--- a/Lib/imaplib.py
+++ b/Lib/imaplib.py
@@ -411,7 +411,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