summaryrefslogtreecommitdiff
path: root/Lib/mimetypes.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-05-04 15:12:55 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2013-05-04 15:12:55 +0300
commit59115aa7c9488baae1b706f077dcd84a558c0097 (patch)
treeb3340cc3e04b90d386fc96685c9f4b4064602fe5 /Lib/mimetypes.py
parent9d0f772c5115217d55aef76fae33f483f2a98032 (diff)
downloadcpython-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.py2
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,