summaryrefslogtreecommitdiffstats
path: root/Lib/mimetypes.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-05-13 08:04:07 (GMT)
committerGeorg Brandl <georg@python.org>2007-05-13 08:04:07 (GMT)
commit0c1f6fcaac7680ed672fcab931732333be06da58 (patch)
treec83a71516579510f347446c8d0b83c8c8eb38bbc /Lib/mimetypes.py
parent2dd7d179de835f9e93bc46aaef25636294f1c13b (diff)
downloadcpython-0c1f6fcaac7680ed672fcab931732333be06da58.zip
cpython-0c1f6fcaac7680ed672fcab931732333be06da58.tar.gz
cpython-0c1f6fcaac7680ed672fcab931732333be06da58.tar.bz2
Add bz2 to content encodings.
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 b0d2f18..c9d618e 100644
--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -329,11 +329,13 @@ def _default_mime_types():
'.tgz': '.tar.gz',
'.taz': '.tar.gz',
'.tz': '.tar.gz',
+ '.tbz2': '.tar.bz2',
}
encodings_map = {
'.gz': 'gzip',
'.Z': 'compress',
+ '.bz2': 'bzip2',
}
# Before adding new types, make sure they are either registered with IANA,