diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-10 20:43:41 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-10 20:43:41 (GMT) |
commit | 148679982f851e2952b9d34e6ae7932f89650c1d (patch) | |
tree | 38a4387a2b29b3a3e0bea0944a0dfea2006ce340 /Doc/whatsnew/3.3.rst | |
parent | 964feabd79633624f5865a0faac7f8f727b176ce (diff) | |
download | cpython-148679982f851e2952b9d34e6ae7932f89650c1d.zip cpython-148679982f851e2952b9d34e6ae7932f89650c1d.tar.gz cpython-148679982f851e2952b9d34e6ae7932f89650c1d.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 cda63e4..32b8581 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`.) |