]> granicus.if.org Git - python/commitdiff
Add bz2 to content encodings.
authorGeorg Brandl <georg@python.org>
Sun, 13 May 2007 08:04:07 +0000 (08:04 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 13 May 2007 08:04:07 +0000 (08:04 +0000)
Lib/mimetypes.py

index b0d2f181728d105e12f322c7e8bcd7eb1bc27df5..c9d618e596f9f73fd7b5309c01d681f52a1dbc07 100644 (file)
@@ -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,