E5ED gh-145717: Add a few Microsoft-specific MIME types, and synchronize between `mimetypes` module and tests by clin1234 · Pull Request #145718 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
8 changes: 8 additions & 0 deletions Doc/whatsnew/3.15.rst
Original file line number Diff line number Diff line change Expand Up @@ -823,6 +823,14 @@ mimetypes (Contributed by John Franey in :gh:`140937`.) * Add ``application/toml``. (Contributed by Gil Forcada in :gh:`139959`.) * Add ``image/jxl``. (Contributed by Foolbar in :gh:`144213`.) * Add the following MIME types:
- ``application/vnd.ms-cab-compressed`` for ``.cab`` extension - ``application/vnd.ms-htmlhelp`` for ``.chm`` extension - ``application/vnd.ms-officetheme`` for ``.thmx`` extension
(Contributed by Charlie Lin in :gh:`145718`.)
* Rename ``application/x-texinfo`` to ``application/texinfo``. (Contributed by Charlie Lin in :gh:`140165`.) * Changed the MIME type for ``.ai`` files to ``application/pdf``. Expand Down
3 changes: 3 additions & 0 deletions Lib/mimetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,12 @@ def _default_mime_types():
'.m3u8' : 'application/vnd.apple.mpegurl',
'.dll' : 'application/vnd.microsoft.portable-executable',
'.exe' : 'application/vnd.microsoft.portable-executable',
'.cab' : 'application/vnd.ms-cab-compressed',
'.xls' : 'application/vnd.ms-excel',
'.xlb' : 'application/vnd.ms-excel',
'.eot' : 'application/vnd.ms-fontobject',
'.chm' : 'application/vnd.ms-htmlhelp',
'.thmx' : 'application/vnd.ms-officetheme',
'.ppt' : 'application/vnd.ms-powerpoint',
'.pot' : 'application/vnd.ms-powerpoint',
'.ppa' : 'application/vnd.ms-powerpoint',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add a few Microsoft-specific MIME types.
Loading
CB0
0