aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hp.com>2015-07-31 08:59:02 +1200
committerRobert Collins <rbtcollins@hp.com>2015-07-31 08:59:02 +1200
commit5ccc18f29844b55a43bf8f26dffeb39057477dea (patch)
treecfecef015dc1e93960ef44e2f3a5861998e6a94b /Lib/imaplib.py
parentIssue #13884: Idle: Remove tearoff lines from menus. Patch by Roger Serwy. (diff)
downloadcpython-5ccc18f29844b55a43bf8f26dffeb39057477dea.tar.gz
cpython-5ccc18f29844b55a43bf8f26dffeb39057477dea.tar.bz2
cpython-5ccc18f29844b55a43bf8f26dffeb39057477dea.zip
Issue #23779: imaplib raises TypeError if authenticator tries to abort.
Patch from Craig Holmquist.
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 4d9df55dc3c..eb05dcb4f19 100644
--- a/Lib/imaplib.py
+++ b/Lib/imaplib.py
@@ -1306,7 +1306,7 @@ class _Authenticator:
def process(self, data):
ret = self.mech(self.decode(data))
if ret is None:
- return '*' # Abort conversation
+ return b'*' # Abort conversation
return self.encode(ret)
def encode(self, inp):