summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-09-09 16:07:49 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-09-09 16:07:49 (GMT)
commit38684c366364fcd4071534a1de62f728407224d8 (patch)
treee16b93cf0f5a416770a873331792e5d4d6611b9c /Doc/whatsnew
parentbb1e3f1ebe99e1cb5a7c136991b8e8f41e4fa4bb (diff)
downloadcpython-38684c366364fcd4071534a1de62f728407224d8.zip
cpython-38684c366364fcd4071534a1de62f728407224d8.tar.gz
cpython-38684c366364fcd4071534a1de62f728407224d8.tar.bz2
imaplib.IMAP4 now supports the context manager protocol.
Original patch by Tarek Ziadé.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.5.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
index 43972b0..38ea2f2 100644
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -141,6 +141,14 @@ doctest
*module* contains no docstrings instead of raising :exc:`ValueError`
(contributed by Glenn Jones in :issue:`15916`).
+imaplib
+-------
+
+* :class:`IMAP4` now supports the context management protocol. When used in a
+ :keyword:`with` statement, the IMAP4 ``LOGOUT`` command will be called
+ automatically at the end of the block. (Contributed by Tarek Ziadé and
+ Serhiy Storchaka in :issue:`4972`).
+
imghdr
------