diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-05-04 15:12:55 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-05-04 15:12:55 +0300 |
commit | 59115aa7c9488baae1b706f077dcd84a558c0097 (patch) | |
tree | b3340cc3e04b90d386fc96685c9f4b4064602fe5 /Lib/mimetypes.py | |
parent | 9d0f772c5115217d55aef76fae33f483f2a98032 (diff) | |
download | cpython-git-59115aa7c9488baae1b706f077dcd84a558c0097.tar.gz |
Issue #16316: mimetypes now recognizes the .xz and .txz (.tar.xz) extensions.
Diffstat (limited to 'Lib/mimetypes.py')
-rw-r--r-- | Lib/mimetypes.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 3f0bd0e719..2872ee4245 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -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, |