From: Charlie Lin Date: Mon, 23 Mar 2026 20:16:41 +0000 (-0400) Subject: gh-145719: Add `.efi` file detection in `mimetypes` (#145720) X-Git-Tag: v3.15.0a8~202 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=821581adaeb3a04855be455c9d9eef1b830f71cd;p=thirdparty%2FPython%2Fcpython.git gh-145719: Add `.efi` file detection in `mimetypes` (#145720) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> --- diff --git a/Doc/whatsnew/3.15.rst b/Doc/whatsnew/3.15.rst index 862731751699..914fb24045b5 100644 --- a/Doc/whatsnew/3.15.rst +++ b/Doc/whatsnew/3.15.rst @@ -842,6 +842,7 @@ mimetypes * Add ``application/sql`` and ``application/vnd.sqlite3``. (Contributed by Charlie Lin in :gh:`145698`.) * Add ``image/jxl``. (Contributed by Foolbar in :gh:`144213`.) +* Add ``application/efi``. (Contributed by Charlie Lin in :gh:`145720`.) * Add the following MIME types: - ``application/vnd.ms-cab-compressed`` for ``.cab`` extension diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 60e8c2be1e25..a83482611461 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -478,6 +478,7 @@ def _default_mime_types(): '.js' : 'text/javascript', '.mjs' : 'text/javascript', '.dcm' : 'application/dicom', + '.efi' : 'application/efi', '.epub' : 'application/epub+zip', '.gz' : 'application/gzip', '.json' : 'application/json', diff --git a/Misc/NEWS.d/next/Library/2026-03-10-01-54-34.gh-issue-145719.okJRoK.rst b/Misc/NEWS.d/next/Library/2026-03-10-01-54-34.gh-issue-145719.okJRoK.rst new file mode 100644 index 000000000000..b7e82a456756 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2026-03-10-01-54-34.gh-issue-145719.okJRoK.rst @@ -0,0 +1 @@ +Add ``application/efi`` MIME type to :mod:`mimetypes`.