Skip to content

Commit

Permalink
[3.12] pythonGH-104375: Use versionchanged to describe new argument…
Browse files Browse the repository at this point in the history
…s in pathlib docs (pythonGH-104376, pythonGH-106058)

(cherry picked from commit 4a6c84f)
  • Loading branch information
barneygale authored Jun 24, 2023
1 parent de1c090 commit ef58c04
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,8 @@ Pure paths provide the following methods and properties:

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

.. versionadded:: 3.12
The *case_sensitive* argument.
.. versionchanged:: 3.12
The *case_sensitive* parameter was added.


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

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

.. deprecated-removed:: 3.12 3.14

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

.. versionadded:: 3.12
The *case_sensitive* argument.
.. versionchanged:: 3.12
The *case_sensitive* parameter was added.


.. method:: Path.group()

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

.. versionadded:: 3.6
The *strict* argument (pre-3.6 behavior is strict).
.. versionchanged:: 3.6
The *strict* parameter was added (pre-3.6 behavior is strict).

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

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

.. versionadded:: 3.12
The *case_sensitive* argument.
.. versionchanged:: 3.12
The *case_sensitive* parameter was added.


.. method:: Path.rmdir()

Expand Down

0 comments on commit ef58c04

Please sign in to comment.