]> granicus.if.org Git - python/commitdiff
bpo-38341: Add SMTPNotSupportedError in the exports of smtplib (#16525)
authornde <denayer.norman@gmail.com>
Sat, 5 Oct 2019 00:30:58 +0000 (02:30 +0200)
committerAbhilash Raj <maxking@users.noreply.github.com>
Sat, 5 Oct 2019 00:30:58 +0000 (17:30 -0700)
Add SMTPNotSupportedError in the exports of smtplib

Co-Authored-By: Brandt Bucher <brandtbucher@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 43a00d9a4e3c42290d7b857cda56c7c9ab361487..6513842eb6c6127b4cc1b5c0d9839763e964d4a3 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.