Skip to content

Commit c89b5ef

Browse files
authored
Fix parameter name of read_mime_types() in mimetypes docs (GH-153974)
1 parent 0fa144b commit c89b5ef

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Doc/library/mimetypes.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,13 @@ behavior of the module.
116116
Previously, Windows registry settings were ignored.
117117

118118

119-
.. function:: read_mime_types(filename)
119+
.. function:: read_mime_types(file)
120120

121-
Load the type map given in the file *filename*, if it exists. The type map is
122-
returned as a dictionary mapping filename extensions, including the leading dot
123-
(``'.'``), to strings of the form ``'type/subtype'``. If the file *filename*
124-
does not exist or cannot be read, ``None`` is returned.
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
123+
returned as a dictionary mapping file extensions, including the leading dot
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)