Skip to content

Commit ef58c04

Browse files
authored
[3.12] GH-104375: Use versionchanged to describe new arguments in pathlib docs (GH-104376, GH-106058)
(cherry picked from commit 4a6c84f)
1 parent de1c090 commit ef58c04

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

Doc/library/pathlib.rst

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,8 @@ Pure paths provide the following methods and properties:
585585

586586
Set *case_sensitive* to ``True`` or ``False`` to override this behaviour.
587587

588-
.. versionadded:: 3.12
589-
The *case_sensitive* argument.
588+
.. versionchanged:: 3.12
589+
The *case_sensitive* parameter was added.
590590

591591

592592
.. method:: PurePath.relative_to(other, walk_up=False)
@@ -627,8 +627,8 @@ Pure paths provide the following methods and properties:
627627
are present in the path; call :meth:`~Path.resolve` first if
628628
necessary to resolve symlinks.
629629

630-
.. versionadded:: 3.12
631-
The *walk_up* argument (old behavior is the same as ``walk_up=False``).
630+
.. versionchanged:: 3.12
631+
The *walk_up* parameter was added (old behavior is the same as ``walk_up=False``).
632632

633633
.. deprecated-removed:: 3.12 3.14
634634

@@ -928,8 +928,9 @@ call fails (for example because the path doesn't exist).
928928
Return only directories if *pattern* ends with a pathname components
929929
separator (:data:`~os.sep` or :data:`~os.altsep`).
930930

931-
.. versionadded:: 3.12
932-
The *case_sensitive* argument.
931+
.. versionchanged:: 3.12
932+
The *case_sensitive* parameter was added.
933+
933934

934935
.. method:: Path.group()
935936

@@ -1313,8 +1314,8 @@ call fails (for example because the path doesn't exist).
13131314
infinite loop is encountered along the resolution path, :exc:`RuntimeError`
13141315
is raised.
13151316

1316-
.. versionadded:: 3.6
1317-
The *strict* argument (pre-3.6 behavior is strict).
1317+
.. versionchanged:: 3.6
1318+
The *strict* parameter was added (pre-3.6 behavior is strict).
13181319

13191320
.. method:: Path.rglob(pattern, *, case_sensitive=None)
13201321

@@ -1340,8 +1341,9 @@ call fails (for example because the path doesn't exist).
13401341
Return only directories if *pattern* ends with a pathname components
13411342
separator (:data:`~os.sep` or :data:`~os.altsep`).
13421343

1343-
.. versionadded:: 3.12
1344-
The *case_sensitive* argument.
1344+
.. versionchanged:: 3.12
1345+
The *case_sensitive* parameter was added.
1346+
13451347

13461348
.. method:: Path.rmdir()
13471349

0 commit comments

Comments
 (0)