]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix parameter name of read_mime_types() in mimetypes docs (GH-153974)
authorRaúl Santos Quirós <130504291+raul-sq@users.noreply.github.com>
Sat, 18 Jul 2026 14:29:45 +0000 (16:29 +0200)
committerGitHub <noreply@github.com>
Sat, 18 Jul 2026 14:29:45 +0000 (16:29 +0200)
Doc/library/mimetypes.rst

index 5c29fff146eef003d88d9a631081c4c3841f8701..f6cfbb5126158e1847cf2d903fbc9c2de6ca45d0 100644 (file)
@@ -116,12 +116,13 @@ behavior of the module.
       Previously, Windows registry settings were ignored.
 
 
-.. function:: read_mime_types(filename)
+.. function:: read_mime_types(file)
 
-   Load the type map given in the file *filename*, if it exists.  The type map is
-   returned as a dictionary mapping filename extensions, including the leading dot
-   (``'.'``), to strings of the form ``'type/subtype'``.  If the file *filename*
-   does not exist or cannot be read, ``None`` is returned.
+   Load the type map given in the file named by *file*, if it exists.  *file*
+   must be a string specifying the name of the file to read.  The type map is
+   returned as a dictionary mapping file extensions, including the leading dot
+   (``'.'``), to strings of the form ``'type/subtype'``.  If the file does not
+   exist or cannot be read, ``None`` is returned.
 
 
 .. function:: add_type(type, ext, strict=True)