From 08d90fe433aee491e0e5ebf6afa7f8e261cbb943 Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Mon, 23 Mar 2026 16:33:25 -0400 Subject: [PATCH 01/15] Update MIME types in mimetypes.py Reorder JavaScript MIME types and added several new MIME types including cache manifest, calendar, and provenance notation. --- Lib/mimetypes.py | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 4339ef5a61397dd..c08f9bd7a77edb3 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -484,10 +484,7 @@ def _default_mime_types(): # Make sure the entry with the preferred file extension for a particular mime type # appears before any others of the same mimetype. types_map = _types_map_default = { - '.js' : 'text/javascript', - '.mjs' : 'text/javascript', '.dcm' : 'application/dicom', - '.efi' : 'application/efi', '.epub' : 'application/epub+zip', '.gz' : 'application/gzip', '.json' : 'application/json', @@ -657,13 +654,25 @@ def _default_mime_types(): '.gltf' : 'model/gltf+json', '.glb' : 'model/gltf-binary', '.stl' : 'model/stl', + '.appcache' : 'text/cache-manifest', + '.manifest' : 'text/cache-manifest', + '.ics' : 'text/calendar', + '.ifb' : 'text/calendar', + '.cql' : 'text/cql', '.css' : 'text/css', '.csv' : 'text/csv', + '.csvs' : 'text/csv-schema', + '.gff3' : 'text/gff3', '.html' : 'text/html', '.htm' : 'text/html', + '.js' : 'text/javascript', + '.mjs' : 'text/javascript', + '.cnd' : 'text/jcr-cnd', '.md' : 'text/markdown', '.markdown': 'text/markdown', + '.miz' : 'text/mizar', '.n3' : 'text/n3', + '.org' : 'text/org', '.txt' : 'text/plain', '.bat' : 'text/plain', '.c' : 'text/plain', @@ -671,9 +680,24 @@ def _default_mime_types(): '.ksh' : 'text/plain', '.pl' : 'text/plain', '.srt' : 'text/plain', + '.provn' : 'text/provenance-notation', '.rtx' : 'text/richtext', + '.shaclc' : 'text/shaclc', + '.shc' : 'text/shaclc', + '.shex' : 'text/shex', + '.spdx' : 'text/spdx', '.tsv' : 'text/tab-separated-values', + '.ttl' : 'text/turtle', + '.uri' : 'text/uri-list', + '.uris' : 'text/uri-list', + '.vcard' : 'text/vcard', + '.vcf' : 'text/vcard', + '.ascii' : 'text/vnd.ascii-art', + '.curl' : 'text/vnd.curl', + '.gml' : 'text/vnd.gml', + '.gv' : 'text/vnd.graphviz', '.vtt' : 'text/vtt', + '.wgsl' : 'text/wgsl', '.py' : 'text/x-python', '.rst' : 'text/x-rst', '.etx' : 'text/x-setext', @@ -681,6 +705,7 @@ def _default_mime_types(): '.sgml' : 'text/x-sgml', '.vcf' : 'text/x-vcard', '.xml' : 'text/xml', + '.ent' : 'text/xml-external-parsed-entity', '.mkv' : 'video/matroska', '.mk3d' : 'video/matroska-3d', '.mp4' : 'video/mp4', From d053a1855f363765447163adf56de35b8dcdf5ef Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Mon, 23 Mar 2026 20:37:04 +0000 Subject: [PATCH 02/15] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20b?= =?UTF-8?q?lurb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...-03-23-20-37-02.gh-issue-146343.JnXJVB.rst | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst diff --git a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst new file mode 100644 index 000000000000000..bc250c74988d5fe --- /dev/null +++ b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst @@ -0,0 +1,28 @@ +Add the following MIME types with file extensions: + + '.appcache' : 'text/cache-manifest', + '.manifest' : 'text/cache-manifest', + '.ics' : 'text/calendar', + '.ifb' : 'text/calendar', + '.cql' : 'text/cql', + '.csvs' : 'text/csv-schema', + '.gff3' : 'text/gff3', + '.cnd' : 'text/jcr-cnd', +'.miz' : 'text/mizar', + '.org' : 'text/org', +'.provn' : 'text/provenance-notation', + '.shaclc' : 'text/shaclc', + '.shc' : 'text/shaclc', + '.shex' : 'text/shex', + '.spdx' : 'text/spdx', + '.ttl' : 'text/turtle', + '.uri' : 'text/uri-list', + '.uris' : 'text/uri-list', + '.vcard' : 'text/vcard', + '.vcf' : 'text/vcard', + '.ascii' : 'text/vnd.ascii-art', + '.curl' : 'text/vnd.curl', + '.gml' : 'text/vnd.gml', + '.gv' : 'text/vnd.graphviz', + '.wgsl' : 'text/wgsl', + '.ent' : 'text/xml-external-parsed-entity' From 3583cf8e87ea2b7a0ac4e25af036c2c20d05f1dd Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Mon, 23 Mar 2026 16:40:08 -0400 Subject: [PATCH 03/15] Fix formatting of mimetype for .cnd files --- Lib/mimetypes.py | 2 +- ...-03-23-20-37-02.gh-issue-146343.JnXJVB.rst | 54 +++++++++---------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index c08f9bd7a77edb3..acba2a6fbe780b7 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -667,7 +667,7 @@ def _default_mime_types(): '.htm' : 'text/html', '.js' : 'text/javascript', '.mjs' : 'text/javascript', - '.cnd' : 'text/jcr-cnd', + '.cnd' : 'text/jcr-cnd', '.md' : 'text/markdown', '.markdown': 'text/markdown', '.miz' : 'text/mizar', diff --git a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst index bc250c74988d5fe..35efc75cc5d1926 100644 --- a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst +++ b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst @@ -1,28 +1,28 @@ -Add the following MIME types with file extensions: - - '.appcache' : 'text/cache-manifest', - '.manifest' : 'text/cache-manifest', - '.ics' : 'text/calendar', - '.ifb' : 'text/calendar', - '.cql' : 'text/cql', - '.csvs' : 'text/csv-schema', - '.gff3' : 'text/gff3', - '.cnd' : 'text/jcr-cnd', -'.miz' : 'text/mizar', - '.org' : 'text/org', -'.provn' : 'text/provenance-notation', - '.shaclc' : 'text/shaclc', - '.shc' : 'text/shaclc', - '.shex' : 'text/shex', - '.spdx' : 'text/spdx', - '.ttl' : 'text/turtle', - '.uri' : 'text/uri-list', - '.uris' : 'text/uri-list', - '.vcard' : 'text/vcard', - '.vcf' : 'text/vcard', - '.ascii' : 'text/vnd.ascii-art', - '.curl' : 'text/vnd.curl', - '.gml' : 'text/vnd.gml', - '.gv' : 'text/vnd.graphviz', - '.wgsl' : 'text/wgsl', +Add the following MIME types with file extensions: + + '.appcache' : 'text/cache-manifest', + '.manifest' : 'text/cache-manifest', + '.ics' : 'text/calendar', + '.ifb' : 'text/calendar', + '.cql' : 'text/cql', + '.csvs' : 'text/csv-schema', + '.gff3' : 'text/gff3', + '.cnd' : 'text/jcr-cnd', +'.miz' : 'text/mizar', + '.org' : 'text/org', +'.provn' : 'text/provenance-notation', + '.shaclc' : 'text/shaclc', + '.shc' : 'text/shaclc', + '.shex' : 'text/shex', + '.spdx' : 'text/spdx', + '.ttl' : 'text/turtle', + '.uri' : 'text/uri-list', + '.uris' : 'text/uri-list', + '.vcard' : 'text/vcard', + '.vcf' : 'text/vcard', + '.ascii' : 'text/vnd.ascii-art', + '.curl' : 'text/vnd.curl', + '.gml' : 'text/vnd.gml', + '.gv' : 'text/vnd.graphviz', + '.wgsl' : 'text/wgsl', '.ent' : 'text/xml-external-parsed-entity' From a0b12eba03affa7d1daf40646c0da65c978984f2 Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Mon, 23 Mar 2026 16:42:37 -0400 Subject: [PATCH 04/15] Refactor MIME types list for clarity --- ...-03-23-20-37-02.gh-issue-146343.JnXJVB.rst | 48 +++++++++---------- 1 file changed, 22 insertions(+), 26 deletions(-) diff --git a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst index 35efc75cc5d1926..6b9abbbf841fbc5 100644 --- a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst +++ b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst @@ -1,28 +1,24 @@ + Add the following MIME types with file extensions: - '.appcache' : 'text/cache-manifest', - '.manifest' : 'text/cache-manifest', - '.ics' : 'text/calendar', - '.ifb' : 'text/calendar', - '.cql' : 'text/cql', - '.csvs' : 'text/csv-schema', - '.gff3' : 'text/gff3', - '.cnd' : 'text/jcr-cnd', -'.miz' : 'text/mizar', - '.org' : 'text/org', -'.provn' : 'text/provenance-notation', - '.shaclc' : 'text/shaclc', - '.shc' : 'text/shaclc', - '.shex' : 'text/shex', - '.spdx' : 'text/spdx', - '.ttl' : 'text/turtle', - '.uri' : 'text/uri-list', - '.uris' : 'text/uri-list', - '.vcard' : 'text/vcard', - '.vcf' : 'text/vcard', - '.ascii' : 'text/vnd.ascii-art', - '.curl' : 'text/vnd.curl', - '.gml' : 'text/vnd.gml', - '.gv' : 'text/vnd.graphviz', - '.wgsl' : 'text/wgsl', - '.ent' : 'text/xml-external-parsed-entity' +- '.appcache' and '.manifest' : 'text/cache-manifest', +- '.ics' and '.ifb' : 'text/calendar', +- '.cql' : 'text/cql', +- '.csvs' : 'text/csv-schema', +- '.gff3' : 'text/gff3', +- '.cnd' : 'text/jcr-cnd', +- '.miz' : 'text/mizar', +- '.org' : 'text/org', +- '.provn' : 'text/provenance-notation', +- '.shaclc' and '.shc' : 'text/shaclc', +- '.shex' : 'text/shex', +- '.spdx' : 'text/spdx', +- '.ttl' : 'text/turtle', +- '.uri' and '.uris' : 'text/uri-list', +- '.vcard' and '.vcf' : 'text/vcard', +- '.ascii' : 'text/vnd.ascii-art', +- '.curl' : 'text/vnd.curl', +- '.gml' : 'text/vnd.gml', +- '.gv' : 'text/vnd.graphviz', +- '.wgsl' : 'text/wgsl', +- '.ent' : 'text/xml-external-parsed-entity' From 50ab0db99f250ae70c4f0d2e312f88a369390d35 Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Mon, 23 Mar 2026 20:21:32 -0400 Subject: [PATCH 05/15] Formatting --- ...-03-23-20-37-02.gh-issue-146343.JnXJVB.rst | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst index 6b9abbbf841fbc5..02ab8117d301668 100644 --- a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst +++ b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst @@ -1,24 +1,24 @@ Add the following MIME types with file extensions: -- '.appcache' and '.manifest' : 'text/cache-manifest', -- '.ics' and '.ifb' : 'text/calendar', -- '.cql' : 'text/cql', -- '.csvs' : 'text/csv-schema', -- '.gff3' : 'text/gff3', -- '.cnd' : 'text/jcr-cnd', -- '.miz' : 'text/mizar', -- '.org' : 'text/org', -- '.provn' : 'text/provenance-notation', -- '.shaclc' and '.shc' : 'text/shaclc', -- '.shex' : 'text/shex', -- '.spdx' : 'text/spdx', -- '.ttl' : 'text/turtle', -- '.uri' and '.uris' : 'text/uri-list', -- '.vcard' and '.vcf' : 'text/vcard', -- '.ascii' : 'text/vnd.ascii-art', -- '.curl' : 'text/vnd.curl', -- '.gml' : 'text/vnd.gml', -- '.gv' : 'text/vnd.graphviz', -- '.wgsl' : 'text/wgsl', -- '.ent' : 'text/xml-external-parsed-entity' + - ``.appcache`` and ``.manifest`` : ``text/cache-manifest`` + - ``.ics`` and ``.ifb`` : ``text/calendar`` + - ``.cql`` : ``text/cql`` + - ``.csvs`` : ``text/csv-schema`` + - ``.gff3`` : ``text/gff3`` + - ``.cnd`` : ``text/jcr-cnd`` + - ``.miz`` : ``text/mizar`` + - ``.org`` : ``text/org`` + - ``.provn`` : ``text/provenance-notation`` + - ``.shaclc`` and ``.shc`` : ``text/shaclc`` + - ``.shex`` : ``text/shex`` + - ``.spdx`` : ``text/spdx`` + - ``.ttl`` : ``text/turtle`` + - ``.uri`` and ``.uris`` : ``text/uri-list`` + - ``.vcard`` and ``.vcf`` : ``text/vcard`` + - ``.ascii`` : ``text/vnd.ascii-art`` + - ``.curl`` : ``text/vnd.curl`` + - ``.gml`` : ``text/vnd.gml`` + - ``.gv`` : ``text/vnd.graphviz`` + - ``.wgsl`` : ``text/wgsl`` + - ``.ent`` : ``text/xml-external-parsed-entity`` From 022c41df6ad8be2ec93eb90f683edeb35404a64f Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Mon, 23 Mar 2026 21:04:52 -0400 Subject: [PATCH 06/15] Again... --- ...-03-23-20-37-02.gh-issue-146343.JnXJVB.rst | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst index 02ab8117d301668..97bf00cadb53212 100644 --- a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst +++ b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst @@ -1,3 +1,4 @@ +<<<<<<< HEAD Add the following MIME types with file extensions: @@ -22,3 +23,28 @@ Add the following MIME types with file extensions: - ``.gv`` : ``text/vnd.graphviz`` - ``.wgsl`` : ``text/wgsl`` - ``.ent`` : ``text/xml-external-parsed-entity`` +======= +Add the following MIME types with file extensions: + + - ``.appcache`` and ``.manifest`` for ``text/cache-manifest`` + - ``.ics`` and ``.ifb`` for ``text/calendar`` + - ``.cql`` for ``text/cql`` + - ``.csvs`` for ``text/csv-schema`` + - ``.gff3`` for ``text/gff3`` + - ``.cnd`` for ``text/jcr-cnd`` + - ``.miz`` for ``text/mizar`` + - ``.org`` for ``text/org`` + - ``.provn`` for ``text/provenance-notation`` + - ``.shaclc`` and ``.shc`` for ``text/shaclc`` + - ``.shex`` for ``text/shex`` + - ``.spdx`` for ``text/spdx`` + - ``.ttl`` for ``text/turtle`` + - ``.uri`` and ``.uris`` for ``text/uri-list`` + - ``.vcard`` and ``.vcf`` for ``text/vcard`` + - ``.ascii`` for ``text/vnd.ascii-art`` + - ``.curl`` for ``text/vnd.curl`` + - ``.gml`` for ``text/vnd.gml`` + - ``.gv`` for ``text/vnd.graphviz`` + - ``.wgsl`` for ``text/wgsl`` + - ``.ent`` for ``text/xml-external-parsed-entity`` +>>>>>>> 78179ae902 (Again...) From ab80fb87656b0768959217f1f5537cf88ddc6de7 Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Wed, 25 Mar 2026 07:51:31 -0400 Subject: [PATCH 07/15] Revert order of JavaScript MIME types --- Lib/mimetypes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index acba2a6fbe780b7..5b015df3c4a9997 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -484,6 +484,8 @@ def _default_mime_types(): # Make sure the entry with the preferred file extension for a particular mime type # appears before any others of the same mimetype. types_map = _types_map_default = { + '.js' : 'text/javascript', + '.mjs' : 'text/javascript', '.dcm' : 'application/dicom', '.epub' : 'application/epub+zip', '.gz' : 'application/gzip', @@ -665,8 +667,6 @@ def _default_mime_types(): '.gff3' : 'text/gff3', '.html' : 'text/html', '.htm' : 'text/html', - '.js' : 'text/javascript', - '.mjs' : 'text/javascript', '.cnd' : 'text/jcr-cnd', '.md' : 'text/markdown', '.markdown': 'text/markdown', From 2c9dc5558f9fce93618f2fdb6f1b80b06dc6e61c Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Wed, 25 Mar 2026 07:53:17 -0400 Subject: [PATCH 08/15] Revert accidental deletion of EFI MIME type --- Lib/mimetypes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 5b015df3c4a9997..f70ce48a9e4980c 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -487,6 +487,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 a8a66f08ffa885b1905019735f95e3b0dc817730 Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Wed, 1 Apr 2026 20:14:11 -0400 Subject: [PATCH 09/15] Update 2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst --- ...-03-23-20-37-02.gh-issue-146343.JnXJVB.rst | 28 +------------------ 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst index 97bf00cadb53212..fd6aeff7d80d125 100644 --- a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst +++ b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst @@ -1,29 +1,3 @@ -<<<<<<< HEAD - -Add the following MIME types with file extensions: - - - ``.appcache`` and ``.manifest`` : ``text/cache-manifest`` - - ``.ics`` and ``.ifb`` : ``text/calendar`` - - ``.cql`` : ``text/cql`` - - ``.csvs`` : ``text/csv-schema`` - - ``.gff3`` : ``text/gff3`` - - ``.cnd`` : ``text/jcr-cnd`` - - ``.miz`` : ``text/mizar`` - - ``.org`` : ``text/org`` - - ``.provn`` : ``text/provenance-notation`` - - ``.shaclc`` and ``.shc`` : ``text/shaclc`` - - ``.shex`` : ``text/shex`` - - ``.spdx`` : ``text/spdx`` - - ``.ttl`` : ``text/turtle`` - - ``.uri`` and ``.uris`` : ``text/uri-list`` - - ``.vcard`` and ``.vcf`` : ``text/vcard`` - - ``.ascii`` : ``text/vnd.ascii-art`` - - ``.curl`` : ``text/vnd.curl`` - - ``.gml`` : ``text/vnd.gml`` - - ``.gv`` : ``text/vnd.graphviz`` - - ``.wgsl`` : ``text/wgsl`` - - ``.ent`` : ``text/xml-external-parsed-entity`` -======= Add the following MIME types with file extensions: - ``.appcache`` and ``.manifest`` for ``text/cache-manifest`` @@ -47,4 +21,4 @@ Add the following MIME types with file extensions: - ``.gv`` for ``text/vnd.graphviz`` - ``.wgsl`` for ``text/wgsl`` - ``.ent`` for ``text/xml-external-parsed-entity`` ->>>>>>> 78179ae902 (Again...) + From 7d930df7d7a230b592d87ddc167b66d78922d2f0 Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Fri, 10 Apr 2026 21:31:10 -0400 Subject: [PATCH 10/15] Spacing --- .../next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst index fd6aeff7d80d125..855ce568960942b 100644 --- a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst +++ b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst @@ -1,3 +1,4 @@ + Add the following MIME types with file extensions: - ``.appcache`` and ``.manifest`` for ``text/cache-manifest`` @@ -22,3 +23,4 @@ Add the following MIME types with file extensions: - ``.wgsl`` for ``text/wgsl`` - ``.ent`` for ``text/xml-external-parsed-entity`` + (Contributed by Charlie Lin in :gh:`146342`.) \ No newline at end of file From da2d29fc7ecd308769b621c0c503645bfdc282d8 Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Fri, 10 Apr 2026 21:36:43 -0400 Subject: [PATCH 11/15] Update MIME types with new file extensions --- .../Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst index 855ce568960942b..7212a8ce816e669 100644 --- a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst +++ b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst @@ -1,5 +1,4 @@ - -Add the following MIME types with file extensions: +* Add the following MIME types with file extensions: - ``.appcache`` and ``.manifest`` for ``text/cache-manifest`` - ``.ics`` and ``.ifb`` for ``text/calendar`` @@ -23,4 +22,4 @@ Add the following MIME types with file extensions: - ``.wgsl`` for ``text/wgsl`` - ``.ent`` for ``text/xml-external-parsed-entity`` - (Contributed by Charlie Lin in :gh:`146342`.) \ No newline at end of file + (Contributed by Charlie Lin in :gh:`146342`.) From d510e169e5a6f2758a1b51f16d76c5c18446fad9 Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Fri, 10 Apr 2026 21:42:21 -0400 Subject: [PATCH 12/15] Update MIME types and file extensions list --- ...-03-23-20-37-02.gh-issue-146343.JnXJVB.rst | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst index 7212a8ce816e669..92692e1df218fb1 100644 --- a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst +++ b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst @@ -1,25 +1,25 @@ -* Add the following MIME types with file extensions: +Add the following MIME types with file extensions: - - ``.appcache`` and ``.manifest`` for ``text/cache-manifest`` - - ``.ics`` and ``.ifb`` for ``text/calendar`` - - ``.cql`` for ``text/cql`` - - ``.csvs`` for ``text/csv-schema`` - - ``.gff3`` for ``text/gff3`` - - ``.cnd`` for ``text/jcr-cnd`` - - ``.miz`` for ``text/mizar`` - - ``.org`` for ``text/org`` - - ``.provn`` for ``text/provenance-notation`` - - ``.shaclc`` and ``.shc`` for ``text/shaclc`` - - ``.shex`` for ``text/shex`` - - ``.spdx`` for ``text/spdx`` - - ``.ttl`` for ``text/turtle`` - - ``.uri`` and ``.uris`` for ``text/uri-list`` - - ``.vcard`` and ``.vcf`` for ``text/vcard`` - - ``.ascii`` for ``text/vnd.ascii-art`` - - ``.curl`` for ``text/vnd.curl`` - - ``.gml`` for ``text/vnd.gml`` - - ``.gv`` for ``text/vnd.graphviz`` - - ``.wgsl`` for ``text/wgsl`` - - ``.ent`` for ``text/xml-external-parsed-entity`` + * ``.appcache`` and ``.manifest`` for ``text/cache-manifest`` + * ``.ics`` and ``.ifb`` for ``text/calendar`` + * ``.cql`` for ``text/cql`` + * ``.csvs`` for ``text/csv-schema`` + * ``.gff3`` for ``text/gff3`` + * ``.cnd`` for ``text/jcr-cnd`` + * ``.miz`` for ``text/mizar`` + * ``.org`` for ``text/org`` + * ``.provn`` for ``text/provenance-notation`` + * ``.shaclc`` and ``.shc`` for ``text/shaclc`` + * ``.shex`` for ``text/shex`` + * ``.spdx`` for ``text/spdx`` + * ``.ttl`` for ``text/turtle`` + * ``.uri`` and ``.uris`` for ``text/uri-list`` + * ``.vcard`` and ``.vcf`` for ``text/vcard`` + * ``.ascii`` for ``text/vnd.ascii-art`` + * ``.curl`` for ``text/vnd.curl`` + * ``.gml`` for ``text/vnd.gml`` + * ``.gv`` for ``text/vnd.graphviz`` + * ``.wgsl`` for ``text/wgsl`` + * ``.ent`` for ``text/xml-external-parsed-entity`` (Contributed by Charlie Lin in :gh:`146342`.) From 7943daa46bed5a09db4a04d7b06ea386c81ad8c6 Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Fri, 10 Apr 2026 21:48:25 -0400 Subject: [PATCH 13/15] Drop list --- ...-03-23-20-37-02.gh-issue-146343.JnXJVB.rst | 45 +++++++++---------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst index 92692e1df218fb1..1844e84949df651 100644 --- a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst +++ b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst @@ -1,25 +1,24 @@ Add the following MIME types with file extensions: +``.appcache`` and ``.manifest`` for ``text/cache-manifest`` +``.ics`` and ``.ifb`` for ``text/calendar`` +``.cql`` for ``text/cql`` +``.csvs`` for ``text/csv-schema`` +``.gff3`` for ``text/gff3`` +``.cnd`` for ``text/jcr-cnd`` +``.miz`` for ``text/mizar`` +``.org`` for ``text/org`` +``.provn`` for ``text/provenance-notation`` +``.shaclc`` and ``.shc`` for ``text/shaclc`` +``.shex`` for ``text/shex`` +``.spdx`` for ``text/spdx`` +``.ttl`` for ``text/turtle`` +``.uri`` and ``.uris`` for ``text/uri-list`` +``.vcard`` and ``.vcf`` for ``text/vcard`` +``.ascii`` for ``text/vnd.ascii-art`` +``.curl`` for ``text/vnd.curl`` +``.gml`` for ``text/vnd.gml`` +``.gv`` for ``text/vnd.graphviz`` +``.wgsl`` for ``text/wgsl`` +``.ent`` for ``text/xml-external-parsed-entity`` - * ``.appcache`` and ``.manifest`` for ``text/cache-manifest`` - * ``.ics`` and ``.ifb`` for ``text/calendar`` - * ``.cql`` for ``text/cql`` - * ``.csvs`` for ``text/csv-schema`` - * ``.gff3`` for ``text/gff3`` - * ``.cnd`` for ``text/jcr-cnd`` - * ``.miz`` for ``text/mizar`` - * ``.org`` for ``text/org`` - * ``.provn`` for ``text/provenance-notation`` - * ``.shaclc`` and ``.shc`` for ``text/shaclc`` - * ``.shex`` for ``text/shex`` - * ``.spdx`` for ``text/spdx`` - * ``.ttl`` for ``text/turtle`` - * ``.uri`` and ``.uris`` for ``text/uri-list`` - * ``.vcard`` and ``.vcf`` for ``text/vcard`` - * ``.ascii`` for ``text/vnd.ascii-art`` - * ``.curl`` for ``text/vnd.curl`` - * ``.gml`` for ``text/vnd.gml`` - * ``.gv`` for ``text/vnd.graphviz`` - * ``.wgsl`` for ``text/wgsl`` - * ``.ent`` for ``text/xml-external-parsed-entity`` - - (Contributed by Charlie Lin in :gh:`146342`.) +(Contributed by Charlie Lin in :gh:`146342`.) \ No newline at end of file From c36c5b93e094794ec789ee2a63af77e852fddaa5 Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Mon, 4 May 2026 15:24:50 +0000 Subject: [PATCH 14/15] CRLF -> LF --- .../next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst index 1844e84949df651..f4e2c549878257a 100644 --- a/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst +++ b/Misc/NEWS.d/next/Library/2026-03-23-20-37-02.gh-issue-146343.JnXJVB.rst @@ -20,5 +20,3 @@ Add the following MIME types with file extensions: ``.gv`` for ``text/vnd.graphviz`` ``.wgsl`` for ``text/wgsl`` ``.ent`` for ``text/xml-external-parsed-entity`` - -(Contributed by Charlie Lin in :gh:`146342`.) \ No newline at end of file From a4e7244435afe392339cda706a118b6f770f798b Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Tue, 7 Jul 2026 08:44:17 -0400 Subject: [PATCH 15/15] Mark in whatsnew --- Doc/whatsnew/3.16.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/whatsnew/3.16.rst b/Doc/whatsnew/3.16.rst index b6a5e4c7fbf1b85..3740caa31fe8ce2 100644 --- a/Doc/whatsnew/3.16.rst +++ b/Doc/whatsnew/3.16.rst @@ -598,6 +598,8 @@ mimetypes * Valid extensions start with a '.' or are empty for :meth:`mimetypes.MimeTypes.add_type`. Undotted extensions now raise a :exc:`ValueError`. +* Add more MIME types + (Contributed by Charlie Lin in :gh:`146344`.) shutil ------