Searched refs:guess_extension (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython2/Lib/ |
D | mimetypes.py | 176 def guess_extension(self, type, strict=True): member in MimeTypes 314 def guess_extension(type, strict=True): function 328 return _db.guess_extension(type, strict) 592 guess = guess_extension(gtype, strict)
|
/external/python/cpython2/Lib/test/ |
D | test_mimetypes.py | 42 eq(self.db.guess_extension("x-application/x-unittest"), ".pyunit") 48 eq(self.db.guess_extension('image/jpg', strict=True), None) 51 eq(self.db.guess_extension('image/jpg', strict=False), '.jpg')
|
/external/python/cpython2/Doc/includes/ |
D | email-unpack.py | 56 ext = mimetypes.guess_extension(part.get_content_type())
|
/external/python/cpython2/Doc/library/ |
D | mimetypes.rst | 64 .. function:: guess_extension(type, strict=True) 220 .. method:: MimeTypes.guess_extension(type, strict=True) 222 Similar to the :func:`guess_extension` function, using the tables stored as part
|
/external/python/cpython2/Misc/ |
D | NEWS | 8396 import guess_extension`` was used.
|
D | HISTORY | 6344 found types. guess_type() and guess_extension() now accept an
|