~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/mime.py

  • Committer: Guilherme Salgado
  • Date: 2010-04-28 20:18:48 UTC
  • mto: This revision was merged to the branch mainline in revision 10969.
  • Revision ID: salgado@canonical.com-20100428201848-nubbdbmtj7dmoq6j
Revert a couple changes left by accident

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
    """
21
21
    mimetypes.init()
22
22
 
23
 
    # Add an extra extensions map for bz2 types.
 
23
    # Add support for bz2 encodings, which is not present in python2.5.
 
24
    mimetypes.encodings_map.setdefault('.bz2', 'bzip2')
24
25
    mimetypes.encodings_map.setdefault('.bzip2', 'bzip2')
 
26
    mimetypes.suffix_map.setdefault('.tbz2', '.tar.bz2')
25
27
 
26
28
    # XXX: GavinPanella 2008-07-04 bug=229040: A fix has been requested
27
29
    # for Intrepid, to add .debdiff to /etc/mime.types, so we may be able