]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Fix parameter name of `read_mime_types()` in `mimetypes` docs (GH-153974)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 18 Jul 2026 16:47:43 +0000 (18:47 +0200)
committerGitHub <noreply@github.com>
Sat, 18 Jul 2026 16:47:43 +0000 (18:47 +0200)
Fix parameter name of read_mime_types() in mimetypes docs (GH-153974)
(cherry picked from commit c89b5effa11366e28cb4a290a302a534352b768f)

Co-authored-by: Raúl Santos Quirós <130504291+raul-sq@users.noreply.github.com>
Doc/library/mimetypes.rst

index 88f5270526fa39b9e88e51b04adf3b20714550b2..f595eb2add1d003dee0d8fdf96b90add124e4335 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)