ACC SHELL
Path : /usr/lib/python/ |
|
Current File : //usr/lib/python/mailcap.pyc |
Ñò
oÄMc @ s¬ d Z d 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.iÿÿÿÿ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 r( t listmailcapfilest opent IOErrort readmailcapfilet closet iteritems( t capst mailcapt fpt morecapst keyt value( ( s /usr/lib/python2.6/mailcap.pyR s
c C sq d t i j o t i d } | i d ƒ } n>