|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /usr/lib64/python2.4/ |
Upload File : |
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/lib64/python2.4/mailcap.pyR s
c C sq d t i j o t i d } | i d ƒ } n>