https://github.com/python/cpython/commit/0fb27f2c33a07d70936a6f4cb930811923297148
commit: 0fb27f2c33a07d70936a6f4cb930811923297148
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-07-18T18:47:09+02:00
summary:

[3.15] Fix parameter name of `read_mime_types()` in `mimetypes` docs 
(GH-153974) (#153979)

(cherry picked from commit c89b5effa11366e28cb4a290a302a534352b768f)

Co-authored-by: Raúl Santos Quirós <[email protected]>

files:
M Doc/library/mimetypes.rst

diff --git a/Doc/library/mimetypes.rst b/Doc/library/mimetypes.rst
index c2ccabe3cc5389..0d512a0b6b8acc 100644
--- a/Doc/library/mimetypes.rst
+++ b/Doc/library/mimetypes.rst
@@ -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)

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to