Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_mimetypes.py41 eq(self.db.guess_extension("x-application/x-unittest"), ".pyunit")
47 eq(self.db.guess_extension('image/jpg', strict=True), None)
50 eq(self.db.guess_extension('image/jpg', strict=False), '.jpg')
/external/python/cpython3/Lib/
Dmimetypes.py178 def guess_extension(self, type, strict=True): member in MimeTypes
311 def guess_extension(type, strict=True): function
325 return _db.guess_extension(type, strict)
589 guess = guess_extension(gtype, strict)
/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)
593 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/cpython3/Doc/includes/
Demail-unpack.py42 ext = mimetypes.guess_extension(part.get_content_type())
Demail-read-alternative.py56 extension = mimetypes.guess_extension(part.get_content_type())
/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/cpython3/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/NEWS.d/
D2.7a1.rst3686 guess_extension`` was used.
/external/python/cpython3/Misc/
DHISTORY15567 import guess_extension`` was used.
23723 found types. guess_type() and guess_extension() now accept an
/external/python/cpython2/Misc/
DHISTORY6344 found types. guess_type() and guess_extension() now accept an