Skip to content

bpo-38341: Add SMTPNotSupportedError in the exports of smtplib#16525

Merged
maxking merged 3 commits into
python:masterfrom
rockwelln:patch-1
Oct 5, 2019
Merged

bpo-38341: Add SMTPNotSupportedError in the exports of smtplib#16525
maxking merged 3 commits into
python:masterfrom
rockwelln:patch-1

Conversation

@rockwelln

@rockwelln rockwelln commented Oct 1, 2019

Copy link
Copy Markdown
Contributor

Pretty simple add in the all variable, the missing exception SMTPNotSupportedError

https://bugs.python.org/issue38341

@rockwelln
rockwelln requested a review from a team as a code owner October 1, 2019 20:52
@the-knights-who-say-ni

Copy link
Copy Markdown

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA).

Recognized GitHub username

We couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames:

@rockwelln

This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

You can check yourself to see if the CLA has been received.

Thanks again for the contribution, we look forward to reviewing it!

@brandtbucher

brandtbucher commented Oct 1, 2019

Copy link
Copy Markdown
Member

Thanks for your time @rockwelln, and welcome to CPython! 😎

@brandtbucher brandtbucher added needs backport to 3.7 type-bug An unexpected behavior, bug, or error labels Oct 1, 2019

@brandtbucher brandtbucher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a good change. Can you also create a NEWS entry, since this changes smtplib's exported names?

Just something simple, like:

Added :exc:`smtplib.SMTPNotSupportedError` to ``__all__`` in :mod:`smtplib`.

@rockwelln

Copy link
Copy Markdown
Contributor Author

Thank you @brandtbucher :-), I posted the news.
Don't hesitate if I missed something, it's the first time I propose a change in CPython.

Comment thread Misc/NEWS.d/next/Library/2019-10-01-21-06-18.bpo-38341.uqwgU_.rst Outdated
of course! thank you for the suggestion, I missed it in the conversation.

Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com>
@brandtbucher

Copy link
Copy Markdown
Member

Awesome. I assume you’ve seen the bot’s message about the CLA?

@rockwelln

Copy link
Copy Markdown
Contributor Author

thanks!
about the CLA, I signed it few minutes ago, it should be ok now.

@maxking maxking left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this @rockwelln

Since this is a public API (https://docs.python.org/3/library/smtplib.html?highlight=smtplib#smtplib.SMTPNotSupportedError) it should be exported.

@maxking
maxking merged commit 3faf826 into python:master Oct 5, 2019
@bedevere-bot

Copy link
Copy Markdown

@maxking: Please replace # with GH- in the commit message next time. Thanks!

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @rockwelln for the PR, and @maxking for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒⛏🤖

@miss-islington

Copy link
Copy Markdown
Contributor

Sorry @rockwelln and @maxking, I had trouble checking out the 3.8 backport branch.
Please backport using cherry_picker on command line.
cherry_picker 3faf826e5879536d2272f1a51c58965a16827f81 3.8

@bedevere-bot

Copy link
Copy Markdown

GH-16590 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 5, 2019
…nGH-16525)

Add SMTPNotSupportedError in the exports of smtplib

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

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

Copy link
Copy Markdown
Member

Congrats on your first CPython contribution @rockwelln! 🍾

Looking forward to seeing more from you in the future.

@rockwelln

Copy link
Copy Markdown
Contributor Author

thank you very much @brandtbucher for your support. this first experience was a pleasure.
I'd be happy to contribute again.

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @rockwelln for the PR, and @maxking for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

GH-16721 is a backport of this pull request to the 3.8 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 11, 2019
…nGH-16525)

Add SMTPNotSupportedError in the exports of smtplib

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

Co-authored-by: nde <denayer.norman@gmail.com>
@ned-deily

Copy link
Copy Markdown
Member

(The 3.8 autobackport failed for some reason originally, manually restarted it.)

miss-islington added a commit that referenced this pull request Oct 12, 2019
)

Add SMTPNotSupportedError in the exports of smtplib

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

Co-authored-by: nde <denayer.norman@gmail.com>
miss-islington added a commit that referenced this pull request Oct 12, 2019
)

Add SMTPNotSupportedError in the exports of smtplib

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

Co-authored-by: nde <denayer.norman@gmail.com>
jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request Dec 5, 2019
…n#16525)

Add SMTPNotSupportedError in the exports of smtplib

Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants