From ef752946336ecd0ae3edabc81df9130ae0f992c6 Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Mon, 9 Mar 2026 21:51:09 -0400 Subject: [PATCH 1/5] Add support for 'application/efi' MIME type in `Lib/tests/test_mimetypes.py` --- Lib/test/test_mimetypes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_mimetypes.py b/Lib/test/test_mimetypes.py index fe7584f1f9d3b3..b1b62c3aa4ad5b 100644 --- a/Lib/test/test_mimetypes.py +++ b/Lib/test/test_mimetypes.py @@ -227,6 +227,7 @@ def check_extensions(): ("application/epub+zip", ".epub"), ("application/octet-stream", ".bin"), ("application/dicom", ".dcm"), + ("application/efi", ".efi"), ("application/gzip", ".gz"), ("application/ogg", ".ogx"), ("application/pdf", ".pdf"), From ff0301f25f8459066bc18a1403003d3f0906d52c Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Mon, 9 Mar 2026 21:52:37 -0400 Subject: [PATCH 2/5] Add MIME type for .efi files --- Lib/mimetypes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index fc916c470a0110..02df6e7c435325 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', From b78fedc0e2b9d0612d6d8855146f8c73d4ba6123 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Tue, 10 Mar 2026 01:54:35 +0000 Subject: [PATCH 3/5] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Library/2026-03-10-01-54-34.gh-issue-145719.okJRoK.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Library/2026-03-10-01-54-34.gh-issue-145719.okJRoK.rst 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..3744744571cdc7 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2026-03-10-01-54-34.gh-issue-145719.okJRoK.rst @@ -0,0 +1 @@ +Add ``.efi`` file detection in ``mimetypes`` From d58b51fff532b5edfab0e74db83e88de0f3d0f64 Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Thu, 12 Mar 2026 13:57:30 -0400 Subject: [PATCH 4/5] Update Misc/NEWS.d/next/Library/2026-03-10-01-54-34.gh-issue-145719.okJRoK.rst Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> --- .../next/Library/2026-03-10-01-54-34.gh-issue-145719.okJRoK.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 index 3744744571cdc7..b7e82a45675614 100644 --- 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 @@ -1 +1 @@ -Add ``.efi`` file detection in ``mimetypes`` +Add ``application/efi`` MIME type to :mod:`mimetypes`. From 96282d0d64673647d2b8f94207e797eea3215fa1 Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Thu, 12 Mar 2026 14:00:14 -0400 Subject: [PATCH 5/5] Mention in What's New for 3.15 --- Doc/whatsnew/3.15.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc/whatsnew/3.15.rst b/Doc/whatsnew/3.15.rst index 42b6171c1a83a2..eaceda2aef99d2 100644 --- a/Doc/whatsnew/3.15.rst +++ b/Doc/whatsnew/3.15.rst @@ -823,6 +823,7 @@ 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 ``application/efi``. (Contributed by Charlie Lin in :gh:`145720`.) * Rename ``application/x-texinfo`` to ``application/texinfo``. (Contributed by Charlie Lin in :gh:`140165`.) * Changed the MIME type for ``.ai`` files to ``application/pdf``.