Skip to content

Commit 2e30c8a

Browse files
committed
Add soft-deprecation notes for mimetypes.guess_type
Per discussion and feedback, passing a Path is noted in text (not with a directive) as soft deprecated, and deprecated-removed for the 3.16 - 3.21 timeline.
1 parent 44b9566 commit 2e30c8a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Doc/library/mimetypes.rst‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ the information :func:`init` sets up.
5656
.. deprecated-removed:: 3.16 3.21
5757
Passing a file path (or path-like object) instead of a URL.
5858
Use :func:`guess_file_type` instead.
59+
Soft deprecated since version 3.13.
5960

6061

6162
.. function:: guess_file_type(path, *, strict=True)
@@ -267,6 +268,7 @@ than one MIME-type database; it provides an interface similar to the one of the
267268
.. deprecated-removed:: 3.16 3.21
268269
Passing a file path (or path-like object) instead of a URL.
269270
Use :func:`guess_file_type` instead.
271+
Soft deprecated since version 3.13.
270272

271273
.. method:: MimeTypes.guess_file_type(path, *, strict=True)
272274

0 commit comments

Comments
 (0)