Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Python 3.12 #72

Merged
merged 1 commit into from
Jan 3, 2024
Merged

Support Python 3.12 #72

merged 1 commit into from
Jan 3, 2024

Conversation

shadchin
Copy link
Contributor

@shadchin shadchin commented Dec 30, 2023

Remove the keyfile and certfile parameters from the ftplib, imaplib, poplib and smtplib modules, and the key_file, cert_file and check_hostname parameters from the http.client module, all deprecated since Python 3.6. Use the context parameter (ssl_context in imaplib) instead. (Contributed by Victor Stinner in gh-94172.)

Copy link
Owner

@cdent cdent left a comment

Choose a reason for hiding this comment

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

Thanks for doing this. I've got a question on the change, stuff that is either not required, or if it is, it's not clear why. If you could deal with that, that would be great.

Comment on lines 34 to 35
self.key_file = kwargs.pop('key_file', None)
self.cert_file = kwargs.pop('cert_file', None)
Copy link
Owner

Choose a reason for hiding this comment

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

What's the assignment to self.key_file and self.cert_file accomplishing here? In the existing tests it's not required.

If you feel like it is required can you add a test that would fail without it, so the reasoning is clear?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed, it is possible without assignment

@cdent
Copy link
Owner

cdent commented Jan 3, 2024

thanks!

@cdent cdent merged commit cdd0d69 into cdent:master Jan 3, 2024
@shadchin shadchin deleted the patch-1 branch January 3, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants