summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-03-27 13:27:31 (GMT)
committerGeorg Brandl <georg@python.org>2008-03-27 13:27:31 (GMT)
commitdeaf2cafbded0a3ce7a14952c4346604af65724a (patch)
treea0983a781dba7ef970cf348162ec17ddd845c415 /Doc/library
parent6c052fd5233bf18461f18a44335fef3777da2fa6 (diff)
downloadcpython-deaf2cafbded0a3ce7a14952c4346604af65724a.zip
cpython-deaf2cafbded0a3ce7a14952c4346604af65724a.tar.gz
cpython-deaf2cafbded0a3ce7a14952c4346604af65724a.tar.bz2
#2248: return result of QUIT from quit().
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/smtplib.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/library/smtplib.rst b/Doc/library/smtplib.rst
index 0aea80a..3c22f64 100644
--- a/Doc/library/smtplib.rst
+++ b/Doc/library/smtplib.rst
@@ -318,7 +318,12 @@ An :class:`SMTP` instance has the following methods:
.. method:: SMTP.quit()
- Terminate the SMTP session and close the connection.
+ Terminate the SMTP session and close the connection. Return the result of
+ the SMTP ``QUIT`` command.
+
+ .. versionchanged:: 2.6
+ Return a value.
+
Low-level methods corresponding to the standard SMTP/ESMTP commands ``HELP``,
``RSET``, ``NOOP``, ``MAIL``, ``RCPT``, and ``DATA`` are also supported.