Critics have remarked that those four worthies were truly peerless throughout the ages; yet the present falls short of the pastβthe ancients favored unadorned simplicity, whereas the moderns prefer refined elegance. Styles of substance and ornament rise and fall in succession, shifting with the changing mores of the times; such evolution is simply the natural order of things. The ideal lies in honoring antiquity without clashing with the present, and embracing modernity without succumbing to its flawsβembodying that perfect balance of substance and refinement that defines the true gentleman. There is surely no need to abandon a carved palace in favor of a cave dwelling, or to trade a jade carriage for a primitive cart with solid wooden wheels.
Current path: lib64/python2.7/
β Cloned to:
β¬οΈ Go up: /lib64
οΏ½
zfc @ sοΏ½ d Z d d l Z d d l Z d d l Z d d g Z e j d οΏ½ j Z d e f d οΏ½ οΏ½ YZ 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 k rοΏ½ e οΏ½ n d S( s% Mailcap file handling. See RFC 1524.iοΏ½οΏ½οΏ½οΏ½Nt getcapst findmatchs [^\xa1-\xff\w@+=:,./-]t UnsafeMailcapInputc B s e Z d Z RS( s) Warning raised when refusing unsafe input( t __name__t
__module__t __doc__( ( ( s /usr/lib64/python2.7/mailcap.pyR s c C sοΏ½ i } xοΏ½ t οΏ½ D]οΏ½ } y t | d οΏ½ } Wn t k
r? q n X| οΏ½ t | οΏ½ } Wd QXxE | j οΏ½ D]7 \ } } | | k rοΏ½ | | | <qf | | | | | <qf 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 listmailcapfilest opent IOErrort readmailcapfilet iteritems( t capst mailcapt fpt morecapst keyt value( ( s /usr/lib64/python2.7/mailcap.pyR s
c C sm d t j k r. t j d } | j d οΏ½ } n; d t j k rM t j d } n d } | d d d d g } | S( s7 Return a list of all mailcap files found on the system.t MAILCAPSt :t HOMEt .s /.mailcaps /etc/mailcaps /usr/etc/mailcaps /usr/local/etc/mailcap( t ost environt split( t strt mailcapst home( ( s /usr/lib64/python2.7/mailcap.pyR + s
c C s; i } x.| j οΏ½ } | s Pn | d d k s | j οΏ½ d k rG q n | } x= | d d k rοΏ½ | j οΏ½ } | s{ d } n | d | } qP Wt | οΏ½ \ } } | oοΏ½ | sοΏ½ q n | j d οΏ½ } x. t t | οΏ½ οΏ½ D] } | | j οΏ½ | | <qοΏ½ Wd j | οΏ½ j οΏ½ } | | k r&| | j | οΏ½ q | g | | <q W| S( sοΏ½ Read a mailcap file and return a dictionary keyed by MIME type.
Each MIME type is mapped to an entry consisting of a list of
dictionaries; the list will contain more than one such dictionary
if a given MIME type appears more than once in the mailcap file.
Each dictionary contains key-value pairs for that MIME type, where
the viewing command is stored with the key "view".
i t #t iοΏ½οΏ½οΏ½οΏ½s \
s
t /( t readlinet stript parselineR t ranget lent joint lowert append( R R t linet nextlineR t fieldst typest j( ( s /usr/lib64/python2.7/mailcap.pyR
>