commit | 5ccc18f29844b55a43bf8f26dffeb39057477dea | [log] [tgz] |
---|---|---|
author | Robert Collins <rbtcollins@hp.com> | Fri Jul 31 08:59:02 2015 +1200 |
committer | Robert Collins <rbtcollins@hp.com> | Fri Jul 31 08:59:02 2015 +1200 |
tree | cfecef015dc1e93960ef44e2f3a5861998e6a94b | |
parent | 30f1f67248260b10eb16a3e630c6cf5c7e29fad2 [diff] [blame] |
Issue #23779: imaplib raises TypeError if authenticator tries to abort. Patch from Craig Holmquist.
diff --git a/Lib/imaplib.py b/Lib/imaplib.py index 4d9df55..eb05dcb 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py
@@ -1306,7 +1306,7 @@ 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):