Skip to content

gh-75223: Deprecate undotted extensions in mimetypes.MimeTypes.add_type #128638

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

Merged
merged 20 commits into from
Apr 28, 2025

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Jan 8, 2025

As suggested by @encukou at #2895 (comment), we should deprecate this before raising a backwards-incompatible ValueError.

This PR is the first step to add a deprecation warning.


📚 Documentation preview 📚: https://cpython-previews--128638.org.readthedocs.build/

@python-cla-bot
Copy link

python-cla-bot bot commented Apr 18, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

Copy link
Member

@encukou encukou left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

hugovk and others added 2 commits April 28, 2025 16:56
@hugovk hugovk enabled auto-merge (squash) April 28, 2025 13:57
@hugovk hugovk merged commit ee9102a into python:main Apr 28, 2025
39 checks passed
@hugovk hugovk deleted the 3.14-deprecate-undotted-mimetypes branch April 28, 2025 14:24
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.

4 participants