(fp)
return caps
Read a mailcap file and return a dictionary keyed by MIME type.
Read a mailcap file and return a dictionary keyed by MIME type.
Read a mailcap file and return a dictionary keyed by MIME type .
def readmailcapfile(fp):
    """Read a mailcap file and return a dictionary keyed by MIME type."""
    warnings.warn('readmailcapfile is deprecated, use getcaps instead',
                  DeprecationWarning, 2)
    caps, _ = _readmailcapfile(fp, None)
    return caps
def readmailcapfile ( fp ) : warnings . warn ( 'readmailcapfile is deprecated, use getcaps instead' , DeprecationWarning , 2 ) caps , _ = _readmailcapfile ( fp , None ) return caps