diff options
author | Dylan Van Assche <me@dylanvanassche.be> | 2021-11-20 16:52:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-20 16:52:00 +0100 |
commit | ef5305819ff9b283d92dbf004f977592f4e64165 (patch) | |
tree | 87a0c2d75ae33b719d9c6df5f2c0615ffd741c5e | |
parent | f36c69a26ee880acf62a5ae8c5da49312e84c66d (diff) | |
download | cpython-git-ef5305819ff9b283d92dbf004f977592f4e64165.tar.gz |
bpo-42158: Add MIME types for n-triples, n-quads, n3 and trig (GH-23230)
Co-authored-by: Éric Araujo <merwok@netwok.org>
-rw-r--r-- | Lib/mimetypes.py | 4 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-11-10-17-46-12.bpo-42158.OhxAiH.rst | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index e14d0719be..4750408173 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -436,6 +436,8 @@ def _default_mime_types(): '.doc' : 'application/msword', '.dot' : 'application/msword', '.wiz' : 'application/msword', + '.nq' : 'application/n-quads', + '.nt' : 'application/n-triples', '.bin' : 'application/octet-stream', '.a' : 'application/octet-stream', '.dll' : 'application/octet-stream', @@ -449,6 +451,7 @@ def _default_mime_types(): '.ps' : 'application/postscript', '.ai' : 'application/postscript', '.eps' : 'application/postscript', + '.trig' : 'application/trig', '.m3u' : 'application/vnd.apple.mpegurl', '.m3u8' : 'application/vnd.apple.mpegurl', '.xls' : 'application/vnd.ms-excel', @@ -546,6 +549,7 @@ def _default_mime_types(): '.csv' : 'text/csv', '.html' : 'text/html', '.htm' : 'text/html', + '.n3' : 'text/n3', '.txt' : 'text/plain', '.bat' : 'text/plain', '.c' : 'text/plain', diff --git a/Misc/NEWS.d/next/Library/2020-11-10-17-46-12.bpo-42158.OhxAiH.rst b/Misc/NEWS.d/next/Library/2020-11-10-17-46-12.bpo-42158.OhxAiH.rst new file mode 100644 index 0000000000..a71b481219 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-11-10-17-46-12.bpo-42158.OhxAiH.rst @@ -0,0 +1 @@ +Add MIME types for N-quads, N-triples, Notation3 and TriG to ``mimetypes``. |