gh-75223: Deprecate undotted extensions in `mimetypes.MimeTypes.add_type` by hugovk · Pull Request #128638 · python/cpython · GitHub

github.com

Tin mới

hugovk:3.14-deprecate-undotted-mimetypes

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

mimetypes.add_type should complain when you give it an undotted ext #75223

Add a test for mimetypes.add_type

bpo-31040: Reject undotted extensions in mimetypes.add_type

Address the review

Merge branch 'main' into fix-for-31040

Merge branch 'main' into fix-for-31040

Assert output first, expected result second; link to method in news

Assert adding MIME type with empty extension emits no warning

Assert exception message when adding MIME type with undotted extension

Remove unused import

Fix Sphinx reference; replace bpo with gh-issue

Replace with more useful test case

Improve wording: avoid triple negative

Merge remote-tracking branch 'upstream/main' into deprecate-undotted-…

Deprecate undotted extensions in mimetypes.add_type

awaiting core review

gh-75223: Reject undotted extensions in mimetypes.add_type() #2895

Merge branch 'main' into 3.14-deprecate-undotted-mimetypes

Merge branch 'main' into 3.14-deprecate-undotted-mimetypes

Merge branch 'main' into 3.14-deprecate-undotted-mimetypes

python-cla-bot Bot commented Apr 18, 2025 • edited Loading Uh oh! There was an error while loading. Please reload this page.
python-cla-bot Bot commented Apr 18, 2025 • edited Loading Uh oh! There was an error while loading. Please reload this page.

python-cla-bot Bot commented Apr 18, 2025 • edited Loading Uh oh! There was an error while loading. Please reload this page.

There was an error while loading. Please reload this page.

View reviewed changes

Learn more about hiding disruptive comments

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

Remove some info Co-authored-by: Petr Viktorin <[email protected]>

Merge branch 'main' into 3.14-deprecate-undotted-mimetypes