mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Merge: #13700: Make imap.authenticate with authobject work.
This fixes a bytes/string confusion in the API which prevented custom authobjects from working at all. Original patch by Erno Tukia.
This commit is contained in:
commit
8aa164b395
4 changed files with 137 additions and 20 deletions
|
|
@ -185,9 +185,10 @@ An :class:`IMAP4` instance has the following methods:
|
|||
|
||||
data = authobject(response)
|
||||
|
||||
It will be called to process server continuation responses. It should return
|
||||
``data`` that will be encoded and sent to server. It should return ``None`` if
|
||||
the client abort response ``*`` should be sent instead.
|
||||
It will be called to process server continuation responses; the *response*
|
||||
argument it is passed will be ``bytes``. It should return ``bytes`` *data*
|
||||
that will be base64 encoded and sent to the server. It should return
|
||||
``None`` if the client abort response ``*`` should be sent instead.
|
||||
|
||||
|
||||
.. method:: IMAP4.check()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue