mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #23779: imaplib raises TypeError if authenticator tries to abort.
Patch from Craig Holmquist.
This commit is contained in:
commit
78378e8939
4 changed files with 25 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue