diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-04-13 18:49:48 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-04-13 18:49:48 (GMT) |
commit | 8e37d5df95535081426f5e7fe450695f6dcfe676 (patch) | |
tree | 639ab44183299e0c6a0c9353f65be8e3b797f83d /Doc/whatsnew | |
parent | c1d3daf58b8df00e680e91f0e568270ea8e85adb (diff) | |
download | cpython-8e37d5df95535081426f5e7fe450695f6dcfe676.zip cpython-8e37d5df95535081426f5e7fe450695f6dcfe676.tar.gz cpython-8e37d5df95535081426f5e7fe450695f6dcfe676.tar.bz2 |
#2118: Make SMTPException a subclass of IOError.
Initial patch by Ned Jackson Lovely.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.4.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst index 75ac8ba..2b6193a 100644 --- a/Doc/whatsnew/3.4.rst +++ b/Doc/whatsnew/3.4.rst @@ -151,12 +151,23 @@ New Modules Improved Modules ================ + doctest ------- Added ``FAIL_FAST`` flag to halt test running as soon as the first failure is detected. (Contributed by R. David Murray and Daniel Urban in :issue:`16522`.) + +smtplib +------- + +:exc:`~smtplib.SMTPException` is now a subclass of :exc:`IOError`, which allows +both socket level errors and SMTP protocol level errors to be caught in one +try/except statement by code that only cares whether or not an error occurred. +(:issue:`2118`). + + wave ---- |