diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-04-15 16:23:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-15 16:23:20 (GMT) |
commit | 74125a60b7a477451ff2b8385bfbce3fdaee8dbc (patch) | |
tree | 2a6670b9046ee35a4dc19d907b862c158c33dbfe /Doc | |
parent | 0810fa79885276114d1a94e2ce61da367ebb1ffc (diff) | |
download | cpython-74125a60b7a477451ff2b8385bfbce3fdaee8dbc.zip cpython-74125a60b7a477451ff2b8385bfbce3fdaee8dbc.tar.gz cpython-74125a60b7a477451ff2b8385bfbce3fdaee8dbc.tar.bz2 |
bpo-36348: IMAP4.logout() doesn't ignore exc (GH-12411)
The imap.IMAP4.logout() method no longer ignores silently arbitrary
exceptions.
Changes:
* The IMAP4.logout() method now expects a "BYE" untagged response,
rather than relying on _check_bye() which raises a self.abort()
exception.
* IMAP4.__exit__() now does nothing if the client already logged out.
* Add more debug info if test_logout() tests fail.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/imaplib.rst | 3 | ||||
-rw-r--r-- | Doc/whatsnew/3.8.rst | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/imaplib.rst b/Doc/library/imaplib.rst index d0709f8..f027f82 100644 --- a/Doc/library/imaplib.rst +++ b/Doc/library/imaplib.rst @@ -327,6 +327,9 @@ An :class:`IMAP4` instance has the following methods: Shutdown connection to server. Returns server ``BYE`` response. + .. versionchanged:: 3.8 + The method no longer ignores silently arbitrary exceptions. + .. method:: IMAP4.lsub(directory='""', pattern='*') diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index 39a0da5..f866f9c 100644 --- a/Doc/whatsnew/3.8.rst +++ b/Doc/whatsnew/3.8.rst @@ -709,6 +709,9 @@ Changes in Python behavior Changes in the Python API ------------------------- +* The :meth:`imap.IMAP4.logout` method no longer ignores silently arbitrary + exceptions. + * The function :func:`platform.popen` has been removed, it was deprecated since Python 3.3: use :func:`os.popen` instead. |