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:
R David Murray 2013-02-19 12:20:32 -05:00
commit 8aa164b395
4 changed files with 137 additions and 20 deletions

View file

@ -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()