mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
Issue #23779: imaplib raises TypeError if authenticator tries to abort.
Patch from Craig Holmquist.
This commit is contained in:
parent
30f1f67248
commit
5ccc18f298
4 changed files with 24 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue