Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Doc/whatsnew/3.15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ math
mimetypes
---------

* Add ``image/jxl``. (Contributed by Foolbar in :gh:`144213`.)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you put this after the toml addition? (that way additions are alphabetically sorted)

* Add ``application/node`` MIME type for ``.cjs`` extension. (Contributed by John Franey in :gh:`140937`.)
* Add ``application/toml``. (Contributed by Gil Forcada in :gh:`139959`.)
* Rename ``application/x-texinfo`` to ``application/texinfo``.
Expand Down
1 change: 1 addition & 0 deletions Lib/mimetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ def _default_mime_types():
'.jpeg' : 'image/jpeg',
'.jpm' : 'image/jpm',
'.jpx' : 'image/jpx',
'.jxl' : 'image/jxl',
'.heic' : 'image/heic',
'.heif' : 'image/heif',
'.png' : 'image/png',
Expand Down
1 change: 1 addition & 0 deletions Lib/test/test_mimetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ def check_extensions():
("image/jp2", ".jp2"),
("image/jpeg", ".jpg"),
("image/jpm", ".jpm"),
("image/jxl", ".jxl"),
("image/t38", ".t38"),
("image/tiff", ".tiff"),
("image/tiff-fx", ".tfx"),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Mime type ``image/jxl`` is now supported by :mod:`mimetypes`.
Loading