Home
last modified time | relevance | path

Searched refs:MIMEtype (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/
Dmailcap.py138 def findmatch(caps, MIMEtype, key='view', filename="/dev/null", plist=[]): argument
147 entries = lookup(caps, MIMEtype, key)
154 command = subst(e[key], MIMEtype, filename, plist)
158 def lookup(caps, MIMEtype, key=None): argument
160 if MIMEtype in caps:
161 entries = entries + caps[MIMEtype]
162 MIMEtypes = MIMEtype.split('/')
163 MIMEtype = MIMEtypes[0] + '/*'
164 if MIMEtype in caps:
165 entries = entries + caps[MIMEtype]
[all …]
/external/python/cpython2/Doc/library/
Dmailcap.rst25 .. function:: findmatch(caps, MIMEtype[, key[, filename[, plist]]])