Skip to content

Commit ef53058

Browse files
bpo-42158: Add MIME types for n-triples, n-quads, n3 and trig (GH-23230)
Co-authored-by: Éric Araujo <[email protected]>
1 parent f36c69a commit ef53058

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Lib/mimetypes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,8 @@ def _default_mime_types():
436436
'.doc' : 'application/msword',
437437
'.dot' : 'application/msword',
438438
'.wiz' : 'application/msword',
439+
'.nq' : 'application/n-quads',
440+
'.nt' : 'application/n-triples',
439441
'.bin' : 'application/octet-stream',
440442
'.a' : 'application/octet-stream',
441443
'.dll' : 'application/octet-stream',
@@ -449,6 +451,7 @@ def _default_mime_types():
449451
'.ps' : 'application/postscript',
450452
'.ai' : 'application/postscript',
451453
'.eps' : 'application/postscript',
454+
'.trig' : 'application/trig',
452455
'.m3u' : 'application/vnd.apple.mpegurl',
453456
'.m3u8' : 'application/vnd.apple.mpegurl',
454457
'.xls' : 'application/vnd.ms-excel',
@@ -546,6 +549,7 @@ def _default_mime_types():
546549
'.csv' : 'text/csv',
547550
'.html' : 'text/html',
548551
'.htm' : 'text/html',
552+
'.n3' : 'text/n3',
549553
'.txt' : 'text/plain',
550554
'.bat' : 'text/plain',
551555
'.c' : 'text/plain',
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add MIME types for N-quads, N-triples, Notation3 and TriG to ``mimetypes``.

0 commit comments

Comments
 (0)