diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-10 20:45:42 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-10 20:45:42 (GMT) |
commit | dd6507eb8617fd435b9d282215f5d802bf45b64f (patch) | |
tree | cf585d874c0a58a84fadedfffd481d2aae924fce /Doc/whatsnew/3.3.rst | |
parent | 9f69b86756bd7084256fda9499111313a081f033 (diff) | |
parent | 148679982f851e2952b9d34e6ae7932f89650c1d (diff) | |
download | cpython-dd6507eb8617fd435b9d282215f5d802bf45b64f.zip cpython-dd6507eb8617fd435b9d282215f5d802bf45b64f.tar.gz cpython-dd6507eb8617fd435b9d282215f5d802bf45b64f.tar.bz2 |
Issue #22369: Change "context manager protocol" to "context management protocol".
Diffstat (limited to 'Doc/whatsnew/3.3.rst')
-rw-r--r-- | Doc/whatsnew/3.3.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst index 7631e75..6bea529 100644 --- a/Doc/whatsnew/3.3.rst +++ b/Doc/whatsnew/3.3.rst @@ -1556,7 +1556,7 @@ Schlawack in :issue:`12708`.) nntplib ------- -The :class:`nntplib.NNTP` class now supports the context manager protocol to +The :class:`nntplib.NNTP` class now supports the context management protocol to unconditionally consume :exc:`socket.error` exceptions and to close the NNTP connection when done:: @@ -1861,7 +1861,7 @@ to specify the ``(host, port)`` to use as the source address in the bind call when creating the outgoing socket. (Contributed by Paulo Scardine in :issue:`11281`.) -:class:`~smtplib.SMTP` now supports the context manager protocol, allowing an +:class:`~smtplib.SMTP` now supports the context management protocol, allowing an ``SMTP`` instance to be used in a ``with`` statement. (Contributed by Giampaolo RodolĂ in :issue:`11289`.) |