From ef752946336ecd0ae3edabc81df9130ae0f992c6 Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Mon, 9 Mar 2026 21:51:09 -0400 Subject: [PATCH 1/3] 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/3] 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/3] =?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``