mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-140166: Use application/texinfo as sole MIME type for .texi and .texinfo files (#140165)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
This commit is contained in:
parent
99c3c63d2b
commit
e4f6445f30
4 changed files with 6 additions and 3 deletions
|
|
@ -682,6 +682,8 @@ mimetypes
|
|||
---------
|
||||
|
||||
* Add ``application/toml``. (Contributed by Gil Forcada in :gh:`139959`.)
|
||||
* Rename ``application/x-texinfo`` to ``application/texinfo``.
|
||||
(Contributed by Charlie Lin in :gh:`140165`)
|
||||
|
||||
|
||||
pathlib
|
||||
|
|
|
|||
|
|
@ -500,6 +500,8 @@ def _default_mime_types():
|
|||
'.ps' : 'application/postscript',
|
||||
'.ai' : 'application/postscript',
|
||||
'.eps' : 'application/postscript',
|
||||
'.texi' : 'application/texinfo',
|
||||
'.texinfo': 'application/texinfo',
|
||||
'.toml' : 'application/toml',
|
||||
'.trig' : 'application/trig',
|
||||
'.m3u' : 'application/vnd.apple.mpegurl',
|
||||
|
|
@ -549,8 +551,6 @@ def _default_mime_types():
|
|||
'.tar' : 'application/x-tar',
|
||||
'.tcl' : 'application/x-tcl',
|
||||
'.tex' : 'application/x-tex',
|
||||
'.texi' : 'application/x-texinfo',
|
||||
'.texinfo': 'application/x-texinfo',
|
||||
'.roff' : 'application/x-troff',
|
||||
'.t' : 'application/x-troff',
|
||||
'.tr' : 'application/x-troff',
|
||||
|
|
|
|||
|
|
@ -230,6 +230,7 @@ def check_extensions():
|
|||
("application/gzip", ".gz"),
|
||||
("application/ogg", ".ogx"),
|
||||
("application/postscript", ".ps"),
|
||||
("application/texinfo", ".texi"),
|
||||
("application/toml", ".toml"),
|
||||
("application/vnd.apple.mpegurl", ".m3u"),
|
||||
("application/vnd.ms-excel", ".xls"),
|
||||
|
|
@ -247,7 +248,6 @@ def check_extensions():
|
|||
("application/x-debian-package", ".deb"),
|
||||
("application/x-httpd-php", ".php"),
|
||||
("application/x-rpm", ".rpm"),
|
||||
("application/x-texinfo", ".texi"),
|
||||
("application/x-troff", ".roff"),
|
||||
("application/xml", ".xsl"),
|
||||
("application/yaml", ".yaml"),
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
:mod:`mimetypes`: Per the `IANA assignment <https://www.iana.org/assignments/media-types/application/texinfo>`_, update the MIME type for the ``.texi`` and ``.texinfo`` file formats to ``application/texinfo``, instead of ``application/x-texinfo``.
|
||||
Loading…
Add table
Add a link
Reference in a new issue