https://github.com/python/cpython/commit/821581adaeb3a04855be455c9d9eef1b830f71cd
commit: 821581adaeb3a04855be455c9d9eef1b830f71cd
branch: main
author: Charlie Lin <[email protected]>
committer: hugovk <[email protected]>
date: 2026-03-23T22:16:41+02:00
summary:

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 <[email protected]>

files:
A Misc/NEWS.d/next/Library/2026-03-10-01-54-34.gh-issue-145719.okJRoK.rst
M Doc/whatsnew/3.15.rst
M Lib/mimetypes.py

diff --git a/Doc/whatsnew/3.15.rst b/Doc/whatsnew/3.15.rst
index 86273175169971..914fb24045b519 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 60e8c2be1e2504..a834826114614d 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 00000000000000..b7e82a45675614
--- /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`.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to