xotl.tools.future.mimetypes
– Map filenames to MIME types¶
Extensions to standard library mimetype
.
This module reexport all functions the current version of Python.
New in version 1.8.4.
-
xotl.tools.future.mimetypes.
guess_type
(url, strict=True, default=(None, None))[source]¶ Guess the type of a file based on its filename or URL, given by url.
This is the same as
mimetypes.guess_type()
with the addition of thedefault
keyword