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>
This commit is contained in:
nde 2019-10-05 02:30:58 +02:00 committed by Abhilash Raj
parent c02b41b1fb
commit 3faf826e58
2 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,7 @@ import datetime
import sys import sys
from email.base64mime import body_encode as encode_base64 from email.base64mime import body_encode as encode_base64
__all__ = ["SMTPException", "SMTPServerDisconnected", "SMTPResponseException", __all__ = ["SMTPException", "SMTPNotSupportedError", "SMTPServerDisconnected", "SMTPResponseException",
"SMTPSenderRefused", "SMTPRecipientsRefused", "SMTPDataError", "SMTPSenderRefused", "SMTPRecipientsRefused", "SMTPDataError",
"SMTPConnectError", "SMTPHeloError", "SMTPAuthenticationError", "SMTPConnectError", "SMTPHeloError", "SMTPAuthenticationError",
"quoteaddr", "quotedata", "SMTP"] "quoteaddr", "quotedata", "SMTP"]

View File

@ -0,0 +1 @@
Add :exc:`smtplib.SMTPNotSupportedError` to the :mod:`smtplib` exported names.