]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42158: Add MIME types for n-triples, n-quads, n3 and trig (GH-23230)
authorDylan Van Assche <me@dylanvanassche.be>
Sat, 20 Nov 2021 15:52:00 +0000 (16:52 +0100)
committerGitHub <noreply@github.com>
Sat, 20 Nov 2021 15:52:00 +0000 (16:52 +0100)
Co-authored-by: Éric Araujo <merwok@netwok.org>
Lib/mimetypes.py
Misc/NEWS.d/next/Library/2020-11-10-17-46-12.bpo-42158.OhxAiH.rst [new file with mode: 0644]

index e14d0719bed4890f1641d3b6aa8ddb5a6b38ca17..4750408173ec073fd18fac56b97b3158eea449a3 100644 (file)
@@ -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 (file)
index 0000000..a71b481
--- /dev/null
@@ -0,0 +1 @@
+Add MIME types for N-quads, N-triples, Notation3 and TriG to ``mimetypes``.