From: Georg Brandl Date: Sun, 13 May 2007 08:04:07 +0000 (+0000) Subject: Add bz2 to content encodings. X-Git-Tag: v2.6a1~1749 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c1f6fcaac7680ed672fcab931732333be06da58;p=python Add bz2 to content encodings. --- diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index b0d2f18172..c9d618e596 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,