summaryrefslogtreecommitdiff
path: root/Lib/imaplib.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2016-12-24 21:34:05 -0500
committerR David Murray <rdmurray@bitdance.com>2016-12-24 21:34:05 -0500
commita7613aa06c3a5f53bfb6f01de777c6fe44c6fe82 (patch)
tree7c06f14fd6fa2cc31e1a94211eb7c4dbd0c3d61a /Lib/imaplib.py
parentda31ba9b9263c34378a2f141a67ce7fc6ab1289b (diff)
parentb079c07f7df2e8640c36d689704b23227412b2d5 (diff)
downloadcpython-git-a7613aa06c3a5f53bfb6f01de777c6fe44c6fe82.tar.gz
Merge: #25591: improve imap tests.
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 cad508add8..2fa90120e7 100644
--- a/Lib/imaplib.py
+++ b/Lib/imaplib.py
@@ -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