gh-75223: Reject undotted extensions in `mimetypes.add_type()` by OddBloke · Pull Request #2895 · python/cpython · GitHub

github.com

Tin mới

OddBloke:fix-for-31040

read-the-docs-community

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

View reviewed changes

Add a test for mimetypes.add_type

bpo-31040: Reject undotted extensions in mimetypes.add_type

awaiting change review

awaiting change review

View reviewed changes

This comment was marked as outdated.

This comment was marked as outdated.

Add dot to extensions of added MIME types astropy/pyvo#622

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

Merge branch 'main' into fix-for-31040

Remove duplicate after merge, add to What's New and tidy up

!fixup leftover line

View reviewed changes

Learn more about hiding disruptive comments

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

@github-project-automation

@github-project-automation

CPython pull requests to have finally merged

CPython pull requests to have finally merged

gh-149720: Remove support for undotted ext in mimetypes.MimeType.add_type #149721