File: //proc/2/cwd/proc/2/root/proc/self/root/usr/lib/python2.4/mailcap.pyc
mò
‚=5Dc @ s© d Z d k Z d d g Z d „ Z d „ Z d „ Z d „ Z d „ Z d d
g d „ Z d d „ Z
g d
„ Z d „ Z d „ Z
d „ Z e d j o e
ƒ n d S( s% Mailcap file handling. See RFC 1524.Nt getcapst findmatchc C sª h } x t ƒ D]’ } y t | d ƒ } Wn t j
o
q n Xt | ƒ } | i ƒ xG | i ƒ D]9 \ } } | | j o | | | <qe | | | | | <qe Wq W| S( s Return a dictionary containing the mailcap database.
The dictionary maps a MIME type (in all lowercase, e.g. 'text/plain')
to a list of dictionaries corresponding to mailcap entries. The list
collects all the entries for that MIME type from all available mailcap
files. Each dictionary contains key-value pairs for that MIME type,
where the viewing command is stored with the key "view".
t rN( t capst listmailcapfilest mailcapt opent fpt IOErrort readmailcapfilet morecapst closet iteritemst keyt value( R R R
R R R
( ( t /usr/lib/python2.4/mailcap.pyR s
c C sq d t i j o t i d } | i d ƒ } n>