Skip to content

Commit f924846

Browse files
committed
Further explanation of the format of the object received by the function read_mime_types
1 parent b7353c3 commit f924846

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Doc/library/mimetypes.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,11 @@ behavior of the module.
118118

119119
.. function:: read_mime_types(file)
120120

121-
Load the type map given in the file *file*, if it exists. The type map is
121+
Load the type map given in the file named by *file*, if it exists. *file*
122+
must be a string specifying the name of the file to read. The type map is
122123
returned as a dictionary mapping file extensions, including the leading dot
123-
(``'.'``), to strings of the form ``'type/subtype'``. If the file *file*
124-
does not exist or cannot be read, ``None`` is returned.
124+
(``'.'``), to strings of the form ``'type/subtype'``. If the file does not
125+
exist or cannot be read, ``None`` is returned.
125126

126127

127128
.. function:: add_type(type, ext, strict=True)

0 commit comments

Comments
 (0)