[Python-checkins] bpo-38341: Add SMTPNotSupportedError in the exports of smtplib (GH-16525)

Miss Islington (bot) webhook-mailer at python.org
Sat Oct 12 12:26:09 EDT 2019


https://github.com/python/cpython/commit/cb580d6fa8349acff723a7a044181d896d076871
commit: cb580d6fa8349acff723a7a044181d896d076871
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-10-12T09:26:04-07:00
summary:

bpo-38341: Add SMTPNotSupportedError in the exports of smtplib (GH-16525)


Add SMTPNotSupportedError in the exports of smtplib

Co-Authored-By: Brandt Bucher <brandtbucher at gmail.com>
(cherry picked from commit 3faf826e5879536d2272f1a51c58965a16827f81)

Co-authored-by: nde <denayer.norman at gmail.com>

files:
A Misc/NEWS.d/next/Library/2019-10-01-21-06-18.bpo-38341.uqwgU_.rst
M Lib/smtplib.py

diff --git a/Lib/smtplib.py b/Lib/smtplib.py
index 6091c7fb7acad..22d5097c697fc 100755
--- a/Lib/smtplib.py
+++ b/Lib/smtplib.py
@@ -54,7 +54,7 @@
 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 0000000000000..dd1a6b080b627
--- /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.



More information about the Python-checkins mailing list