Content-Length: 3445 | pFad | http://github.com/python/cpython/pull/136761.patch
thub.com
From 619f371d951201f2014c6bc60b1e82063e35f32d Mon Sep 17 00:00:00 2001
From: AN Long
Date: Sat, 19 Jul 2025 01:37:18 +0900
Subject: [PATCH 1/3] Clarify docs for types_map and types_map_inv on
mimetypes.MimeTypes
---
Doc/library/mimetypes.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/mimetypes.rst b/Doc/library/mimetypes.rst
index 13511b16a0ed8c..5a87f7ba3e8bfa 100644
--- a/Doc/library/mimetypes.rst
+++ b/Doc/library/mimetypes.rst
@@ -232,7 +232,7 @@ than one MIME-type database; it provides an interface similar to the one of the
Tuple containing two dictionaries, mapping filename extensions to MIME types:
the first dictionary is for the non-standards types and the second one is for
the standard types. They are initialized by :data:`common_types` and
- :data:`types_map`.
+ :data:`types_map` or by :func:`init`, or by :func:`init` calls.
.. attribute:: MimeTypes.types_map_inv
@@ -240,7 +240,7 @@ than one MIME-type database; it provides an interface similar to the one of the
Tuple containing two dictionaries, mapping MIME types to a list of filename
extensions: the first dictionary is for the non-standards types and the
second one is for the standard types. They are initialized by
- :data:`common_types` and :data:`types_map`.
+ :data:`common_types` and :data:`types_map`, or by :func:`init` calls.
.. method:: MimeTypes.guess_extension(type, strict=True)
From 36e4cc4a6ea632fee6e95f540a875bc42dd000a1 Mon Sep 17 00:00:00 2001
From: AN Long
Date: Sat, 19 Jul 2025 01:43:11 +0900
Subject: [PATCH 2/3] Fix typo
---
Doc/library/mimetypes.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Doc/library/mimetypes.rst b/Doc/library/mimetypes.rst
index 5a87f7ba3e8bfa..14faf5bcfdae1e 100644
--- a/Doc/library/mimetypes.rst
+++ b/Doc/library/mimetypes.rst
@@ -232,7 +232,7 @@ than one MIME-type database; it provides an interface similar to the one of the
Tuple containing two dictionaries, mapping filename extensions to MIME types:
the first dictionary is for the non-standards types and the second one is for
the standard types. They are initialized by :data:`common_types` and
- :data:`types_map` or by :func:`init`, or by :func:`init` calls.
+ :data:`types_map` or by :func:`init` calls.
.. attribute:: MimeTypes.types_map_inv
From 05ec9d954538c3d38546e6e45cf9f75fc3d845a9 Mon Sep 17 00:00:00 2001
From: AN Long
Date: Sat, 19 Jul 2025 01:43:44 +0900
Subject: [PATCH 3/3] Add comma
---
Doc/library/mimetypes.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Doc/library/mimetypes.rst b/Doc/library/mimetypes.rst
index 14faf5bcfdae1e..96d064020229c5 100644
--- a/Doc/library/mimetypes.rst
+++ b/Doc/library/mimetypes.rst
@@ -232,7 +232,7 @@ than one MIME-type database; it provides an interface similar to the one of the
Tuple containing two dictionaries, mapping filename extensions to MIME types:
the first dictionary is for the non-standards types and the second one is for
the standard types. They are initialized by :data:`common_types` and
- :data:`types_map` or by :func:`init` calls.
+ :data:`types_map`, or by :func:`init` calls.
.. attribute:: MimeTypes.types_map_inv
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/python/cpython/pull/136761.patch
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy