mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Issue #16316: mimetypes now recognizes the .xz and .txz (.tar.xz) extensions.
This commit is contained in:
parent
9d0f772c51
commit
59115aa7c9
3 changed files with 6 additions and 0 deletions
|
@ -378,12 +378,14 @@ def _default_mime_types():
|
|||
'.taz': '.tar.gz',
|
||||
'.tz': '.tar.gz',
|
||||
'.tbz2': '.tar.bz2',
|
||||
'.txz': '.tar.xz',
|
||||
}
|
||||
|
||||
encodings_map = {
|
||||
'.gz': 'gzip',
|
||||
'.Z': 'compress',
|
||||
'.bz2': 'bzip2',
|
||||
'.xz': 'xz',
|
||||
}
|
||||
|
||||
# Before adding new types, make sure they are either registered with IANA,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue