]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-145719: Add `.efi` file detection in `mimetypes` (#145720)
authorCharlie Lin <tuug@gmx.us>
Mon, 23 Mar 2026 20:16:41 +0000 (16:16 -0400)
committerGitHub <noreply@github.com>
Mon, 23 Mar 2026 20:16:41 +0000 (22:16 +0200)
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>
Doc/whatsnew/3.15.rst
Lib/mimetypes.py
Misc/NEWS.d/next/Library/2026-03-10-01-54-34.gh-issue-145719.okJRoK.rst [new file with mode: 0644]

index 86273175169971913dc6cc40f28ce8a58459673d..914fb24045b5197ef958599a34596986ce8436bd 100644 (file)
@@ -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
index 60e8c2be1e25049240a6fa068bb9b92f34deca5e..a834826114614ddd06f5b14d8d4b10db3552d4e1 100644 (file)
@@ -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 (file)
index 0000000..b7e82a4
--- /dev/null
@@ -0,0 +1 @@
+Add ``application/efi`` MIME type to :mod:`mimetypes`.