Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Doc/library/mimetypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,14 @@ than one MIME-type database; it provides an interface similar to the one of the
:data:`common_types` and :data:`types_map`.


.. method:: MimeTypes.add_type(type, ext, strict=True)

Similar to the :func:`add_type` function, using the tables stored as part of
the object.

.. versionadded:: 2.3


.. method:: MimeTypes.guess_extension(type, strict=True)

Similar to the :func:`guess_extension` function, using the tables stored as part
Expand Down