diff options
author | Sebastian Rittau <srittau@rittau.org> | 2018-09-10 17:29:43 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2018-09-10 17:29:43 (GMT) |
commit | 78deb7f33227972987722bc3fed5bcb45fae869e (patch) | |
tree | cf52475d38ce03d15a0ed669aa57b5a69d986522 /Doc | |
parent | 9797b7ae4496627836c55333765e10201a9840e3 (diff) | |
download | cpython-78deb7f33227972987722bc3fed5bcb45fae869e.zip cpython-78deb7f33227972987722bc3fed5bcb45fae869e.tar.gz cpython-78deb7f33227972987722bc3fed5bcb45fae869e.tar.bz2 |
closes bpo-34525: Fix smtplib's authobject() documentation (GH-8965)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/smtplib.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/smtplib.rst b/Doc/library/smtplib.rst index 8052172..6fb0934 100644 --- a/Doc/library/smtplib.rst +++ b/Doc/library/smtplib.rst @@ -346,7 +346,7 @@ An :class:`SMTP` instance has the following methods: If optional keyword argument *initial_response_ok* is true, ``authobject()`` will be called first with no argument. It can return the - :rfc:`4954` "initial response" bytes which will be encoded and sent with + :rfc:`4954` "initial response" ASCII ``str`` which will be encoded and sent with the ``AUTH`` command as below. If the ``authobject()`` does not support an initial response (e.g. because it requires a challenge), it should return ``None`` when called with ``challenge=None``. If *initial_response_ok* is @@ -355,7 +355,7 @@ An :class:`SMTP` instance has the following methods: If the initial response check returns ``None``, or if *initial_response_ok* is false, ``authobject()`` will be called to process the server's challenge response; the *challenge* argument it is passed will be a ``bytes``. It - should return ``bytes`` *data* that will be base64 encoded and sent to the + should return ASCII ``str`` *data* that will be base64 encoded and sent to the server. The ``SMTP`` class provides ``authobjects`` for the ``CRAM-MD5``, ``PLAIN``, |