Home
last modified time | relevance | path

Searched refs:guess_type (Results 1 – 8 of 8) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_mimetypes.py20 eq(self.db.guess_type("foo.html"), ("text/html", None))
21 eq(self.db.guess_type("foo.tgz"), ("application/x-tar", "gzip"))
22 eq(self.db.guess_type("foo.tar.gz"), ("application/x-tar", "gzip"))
23 eq(self.db.guess_type("foo.tar.Z"), ("application/x-tar", "compress"))
27 guess_type = self.db.guess_type
28 eq(guess_type("data:,thisIsTextPlain"), ("text/plain", None))
29 eq(guess_type("data:;base64,thisIsTextPlain"), ("text/plain", None))
30 eq(guess_type("data:text/x-foo,thisIsTextXFoo"), ("text/x-foo", None))
36 eq(self.db.guess_type("foo.pyunit"),
43 eq(self.db.guess_type('foo.xul', strict=True), (None, None))
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dmimetypes.py95 def guess_type(self, url, strict=True): member in MimeTypes
275 def guess_type(url, strict=True): function
295 return _db.guess_type(url, strict)
589 guess, encoding = guess_type(gtype, strict)
DSimpleHTTPServer.py82 ctype = self.guess_type(path)
179 def guess_type(self, path): member in SimpleHTTPRequestHandler
Durllib2.py1327 mtype = mimetypes.guess_type(filename)[0]
1388 mtype = mimetypes.guess_type(req.get_full_url())[0]
Durllib.py478 mtype = mimetypes.guess_type(url)[0]
549 mtype = mimetypes.guess_type("ftp:" + url)[0]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Dserve.py18 type = mimetypes.guess_type(fn)[0]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
DSimpleHTTPServer.py89 ctype = self.guess_type(path)
194 def guess_type(self, path): member in SimpleHTTPRequestHandler
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/webchecker/
Dwebchecker.py561 ctype, encoding = mimetypes.guess_type(url)