Issue #23779: imaplib raises TypeError if authenticator tries to abort.

Patch from Craig Holmquist.
This commit is contained in:
Robert Collins 2015-07-31 09:01:38 +12:00
commit 78378e8939
4 changed files with 25 additions and 1 deletions

View file

@ -1353,7 +1353,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):