Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2535345

Browse files
gh-139958: Add TOML MIME type (#139959)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
1 parent0c17473 commit2535345

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

‎Lib/mimetypes.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ def _default_mime_types():
500500
'.ps' :'application/postscript',
501501
'.ai' :'application/postscript',
502502
'.eps' :'application/postscript',
503+
'.toml' :'application/toml',
503504
'.trig' :'application/trig',
504505
'.m3u' :'application/vnd.apple.mpegurl',
505506
'.m3u8' :'application/vnd.apple.mpegurl',
@@ -587,9 +588,9 @@ def _default_mime_types():
587588
'.aiff' :'audio/x-aiff',
588589
'.ra' :'audio/x-pn-realaudio',
589590
'.wav' :'audio/vnd.wave',
591+
'.weba' :'audio/webm',
590592
'.otf' :'font/otf',
591593
'.ttf' :'font/ttf',
592-
'.weba' :'audio/webm',
593594
'.woff' :'font/woff',
594595
'.woff2' :'font/woff2',
595596
'.avif' :'image/avif',

‎Lib/test/test_mimetypes.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ def check_extensions():
230230
("application/gzip",".gz"),
231231
("application/ogg",".ogx"),
232232
("application/postscript",".ps"),
233+
("application/toml",".toml"),
233234
("application/vnd.apple.mpegurl",".m3u"),
234235
("application/vnd.ms-excel",".xls"),
235236
("application/vnd.ms-fontobject",".eot"),
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The ``application/toml`` mime type is now supported by:mod:`mimetypes`.
2+
Patch by Gil Forcada.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp