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/ |
D | test_mimetypes.py | 20 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/ |
D | mimetypes.py | 95 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)
|
D | SimpleHTTPServer.py | 82 ctype = self.guess_type(path) 179 def guess_type(self, path): member in SimpleHTTPRequestHandler
|
D | urllib2.py | 1327 mtype = mimetypes.guess_type(filename)[0] 1388 mtype = mimetypes.guess_type(req.get_full_url())[0]
|
D | urllib.py | 478 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/ |
D | serve.py | 18 type = mimetypes.guess_type(fn)[0]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
D | SimpleHTTPServer.py | 89 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/ |
D | webchecker.py | 561 ctype, encoding = mimetypes.guess_type(url)
|