-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
gh-140392: Add application
MIME types in Lib/mimetypes.py
#140393
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
Open
clin1234
wants to merge
20
commits into
python:main
Choose a base branch
from
clin1234:patch-2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+52
−0
Open
Changes from 17 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
5a31dae
Add `application` MIME types in Lib/mimetypes.py
clin1234 150066b
Add `application` MIME types in Lib/test/test_mimetypes.py
clin1234 fd4c130
Add new application media types in 3.15 release
clin1234 f9bcff5
Proper indentation
clin1234 a8cce21
Style fix
clin1234 ece6041
Doc lint
clin1234 9e1e257
Revert accidental whitespace misindentation
clin1234 8edf346
More reverting
clin1234 cca3f64
Hopefully the last misindents should be fixed...
clin1234 d8d96cf
Spacing
clin1234 548857a
📜🤖 Added by blurb_it.
blurb-it[bot] 04a70e2
Update Misc/NEWS.d/next/Library/2025-10-21-16-39-58.gh-issue-140392.o…
clin1234 0067040
Update Misc/NEWS.d/next/Library/2025-10-21-16-39-58.gh-issue-140392.o…
clin1234 8788994
Apply suggestion from @hugovk
clin1234 3d7e066
Apply spelling suggestion from @hugovk
clin1234 4adcde0
Apply suggestion from @hugovk
clin1234 5d3ccd2
Apply suggestion from @hugovk
clin1234 4f0d259
FIx indentation in Misc/NEWS.d/next/Library/2025-10-21-16-39-58.gh-is…
clin1234 9568995
Tidy up Misc/NEWS.d/next/Library/2025-10-21-16-39-58.gh-issue-140392.…
clin1234 0cd3b96
Update Lib/test/test_mimetypes.py
clin1234 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
Misc/NEWS.d/next/Library/2025-10-21-16-39-58.gh-issue-140392.ouL6FW.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Add the following MIME types: | ||
clin1234 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
- ``application/efi`` | ||
- ``application/mathematica`` | ||
- ``application/mathml+xml`` | ||
- ``application/mbox`` | ||
- ``application/ocsp-request`` | ||
- ``application/ocsp-response`` | ||
- ``application/pem-certificate-chain`` | ||
- ``application/pgp-keys`` | ||
- ``application/sql`` | ||
- ``application/zstd`` | ||
clin1234 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know we (and especially me!) have been adding new MIME types to this test, but I'm now thinking there's not much point, we're essentially duplicating
types_map
in reverse.It's useful to have some in here, to test the lookup works, but we don't really need all.
When we have multiple extensions (for example,
application/mathematica
has.ma
,.mb
and.na
), maybe it's useful to include the test to show which extension it returns.I'm not suggesting removing all existing ones, but shall we remove the new ones here, other than for
application/mathematica
?