Searched refs:guess_extension (Results 1 – 12 of 12) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_mimetypes.py | 41 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/ |
D | mimetypes.py | 178 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/ |
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) 593 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/cpython3/Doc/includes/ |
D | email-unpack.py | 42 ext = mimetypes.guess_extension(part.get_content_type())
|
D | email-read-alternative.py | 56 extension = mimetypes.guess_extension(part.get_content_type())
|
/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/cpython3/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/NEWS.d/ |
D | 2.7a1.rst | 3686 guess_extension`` was used.
|
/external/python/cpython3/Misc/ |
D | HISTORY | 15567 import guess_extension`` was used. 23723 found types. guess_type() and guess_extension() now accept an
|
/external/python/cpython2/Misc/ |
D | HISTORY | 6344 found types. guess_type() and guess_extension() now accept an
|