]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38341: Add SMTPNotSupportedError in the exports of smtplib (GH-16525)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 12 Oct 2019 16:08:24 +0000 (09:08 -0700)
committerGitHub <noreply@github.com>
Sat, 12 Oct 2019 16:08:24 +0000 (09:08 -0700)
Add SMTPNotSupportedError in the exports of smtplib

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

Co-authored-by: nde <denayer.norman@gmail.com>
Lib/smtplib.py
Misc/NEWS.d/next/Library/2019-10-01-21-06-18.bpo-38341.uqwgU_.rst [new file with mode: 0644]

index a634f7ae7336d48125ef94400cbe61ebe8d2ef5a..8e3d4bf0ccf3ae793f28253cda1d4a29f933a0ef 100755 (executable)
@@ -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 (file)
index 0000000..dd1a6b0
--- /dev/null
@@ -0,0 +1 @@
+Add :exc:`smtplib.SMTPNotSupportedError` to the :mod:`smtplib` exported names.