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

gh-145697: Add.sql and.sqlite3 recognition inmimetypes#145698

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
encukou merged 6 commits intopython:mainfromclin1234:patch-4
Mar 10, 2026
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletionsDoc/whatsnew/3.15.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -822,6 +822,8 @@ mimetypes
* Add ``application/node`` MIME type for ``.cjs`` extension.
(Contributed by John Franey in:gh:`140937`.)
* Add ``application/toml``. (Contributed by Gil Forcada in:gh:`139959`.)
* Add ``application/sql`` and ``application/vnd.sqlite3``.
(Contributed by Charlie Lin in:gh:`145698`.)
* Add ``image/jxl``. (Contributed by Foolbar in:gh:`144213`.)
* Rename ``application/x-texinfo`` to ``application/texinfo``.
(Contributed by Charlie Lin in:gh:`140165`.)
Expand Down
3 changes: 3 additions & 0 deletionsLib/mimetypes.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -501,6 +501,7 @@ def _default_mime_types():
'.ps' : 'application/postscript',
'.eps' : 'application/postscript',
'.rtf' : 'application/rtf',
'.sql' : 'application/sql',
'.texi' : 'application/texinfo',
'.texinfo': 'application/texinfo',
'.toml' : 'application/toml',
Expand All@@ -525,6 +526,8 @@ def _default_mime_types():
'.xlsx' : 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'.docx' : 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'.rar' : 'application/vnd.rar',
'.sqlite3': 'application/vnd.sqlite3',
'.sqlite' : 'application/vnd.sqlite3',
'.wasm' : 'application/wasm',
'.7z' : 'application/x-7z-compressed',
'.bcpio' : 'application/x-bcpio',
Expand Down
2 changes: 2 additions & 0 deletionsLib/test/test_mimetypes.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -232,6 +232,7 @@ def check_extensions():
("application/pdf", ".pdf"),
("application/postscript", ".ps"),
("application/rtf", ".rtf"),
("application/sql", ".sql"),
("application/texinfo", ".texi"),
("application/toml", ".toml"),
("application/vnd.apple.mpegurl", ".m3u"),
Expand All@@ -246,6 +247,7 @@ def check_extensions():
("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", ".xlsx"),
("application/vnd.openxmlformats-officedocument.wordprocessingml.document", ".docx"),
("application/vnd.rar", ".rar"),
("application/vnd.sqlite3", ".sqlite3"),
("application/x-7z-compressed", ".7z"),
("application/x-debian-package", ".deb"),
("application/x-httpd-php", ".php"),
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
Add ``application/sql`` and ``application/vnd.sqlite3`` into ``mimetypes``.
Loading

[8]ページ先頭

©2009-2026 Movatter.jp