Home
last modified time | relevance | path

Searched refs:guess_extension (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython2/Lib/
Dmimetypes.py176 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/
Dtest_mimetypes.py42 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/
Demail-unpack.py56 ext = mimetypes.guess_extension(part.get_content_type())
/external/python/cpython2/Doc/library/
Dmimetypes.rst64 .. 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/
DNEWS8396 import guess_extension`` was used.
DHISTORY6344 found types. guess_type() and guess_extension() now accept an