Searched refs:MIMEtype (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython2/Lib/ |
D | mailcap.py | 138 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/cpython3/Lib/ |
D | mailcap.py | 159 def findmatch(caps, MIMEtype, key='view', filename="/dev/null", plist=[]): argument 168 entries = lookup(caps, MIMEtype, key) 175 command = subst(e[key], MIMEtype, filename, plist) 179 def lookup(caps, MIMEtype, key=None): argument 181 if MIMEtype in caps: 182 entries = entries + caps[MIMEtype] 183 MIMEtypes = MIMEtype.split('/') 184 MIMEtype = MIMEtypes[0] + '/*' 185 if MIMEtype in caps: 186 entries = entries + caps[MIMEtype] [all …]
|
/external/python/cpython3/Doc/library/ |
D | mailcap.rst | 25 .. function:: findmatch(caps, MIMEtype, key='view', filename='/dev/null', plist=[])
|
/external/python/cpython2/Doc/library/ |
D | mailcap.rst | 25 .. function:: findmatch(caps, MIMEtype[, key[, filename[, plist]]])
|