diff options
author | nde <denayer.norman@gmail.com> | 2019-10-05 02:30:58 +0200 |
---|---|---|
committer | Abhilash Raj <maxking@users.noreply.github.com> | 2019-10-04 17:30:58 -0700 |
commit | 3faf826e5879536d2272f1a51c58965a16827f81 (patch) | |
tree | ccbc528de77279927feb0abf806b2cc2c3fb3c3d | |
parent | c02b41b1fb115c87693530ea6a480b2e15460424 (diff) | |
download | cpython-git-3faf826e5879536d2272f1a51c58965a16827f81.tar.gz |
bpo-38341: Add SMTPNotSupportedError in the exports of smtplib (#16525)
Add SMTPNotSupportedError in the exports of smtplib
Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com>
-rwxr-xr-x | Lib/smtplib.py | 2 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-10-01-21-06-18.bpo-38341.uqwgU_.rst | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py index 43a00d9a4e..6513842eb6 100755 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -54,7 +54,7 @@ import datetime import sys from email.base64mime import body_encode as encode_base64 -__all__ = ["SMTPException", "SMTPServerDisconnected", "SMTPResponseException", +__all__ = ["SMTPException", "SMTPNotSupportedError", "SMTPServerDisconnected", "SMTPResponseException", "SMTPSenderRefused", "SMTPRecipientsRefused", "SMTPDataError", "SMTPConnectError", "SMTPHeloError", "SMTPAuthenticationError", "quoteaddr", "quotedata", "SMTP"] diff --git a/Misc/NEWS.d/next/Library/2019-10-01-21-06-18.bpo-38341.uqwgU_.rst b/Misc/NEWS.d/next/Library/2019-10-01-21-06-18.bpo-38341.uqwgU_.rst new file mode 100644 index 0000000000..dd1a6b080b --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-10-01-21-06-18.bpo-38341.uqwgU_.rst @@ -0,0 +1 @@ +Add :exc:`smtplib.SMTPNotSupportedError` to the :mod:`smtplib` exported names. |