From e6571ca397afd62bdb131c3eaf10697602aadda4 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Tue, 25 Jul 2017 15:36:04 -0400 Subject: [PATCH] Add warning note about mimetypes.add_type ext argument format This addresses the documentation of the issue described in bpo-31040, but not the underlying issue. --- Doc/library/mimetypes.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/library/mimetypes.rst b/Doc/library/mimetypes.rst index 67b7a7178534d3c..69296bcc19fa661 100644 --- a/Doc/library/mimetypes.rst +++ b/Doc/library/mimetypes.rst @@ -109,6 +109,11 @@ behavior of the module. When *strict* is ``True`` (the default), the mapping will be added to the official MIME types, otherwise to the non-standard ones. + .. note:: + + The *ext* argument should start with a dot ("``.``") for the + mapping to be used by other calls to ``mimetypes``. + .. data:: inited