diff options
author | jacksonriley <52106215+jacksonriley@users.noreply.github.com> | 2022-06-07 18:54:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-07 18:54:16 (GMT) |
commit | 8ef7929baffd0038bcb38978a6a91ecc63bf0de2 (patch) | |
tree | 7bc0658170be77e05b9c05c5664df3ee724e41e1 /Doc | |
parent | 296081a7cedc032232efc823b7b238710677a9df (diff) | |
download | cpython-8ef7929baffd0038bcb38978a6a91ecc63bf0de2.zip cpython-8ef7929baffd0038bcb38978a6a91ecc63bf0de2.tar.gz cpython-8ef7929baffd0038bcb38978a6a91ecc63bf0de2.tar.bz2 |
Fix `PurePath.relative_to` links in the pathlib documentation. (GH-93268)
These are currently broken as they refer to :meth:`Path.relative_to` rather than :meth:`PurePath.relative_to`, and `relative_to` is a method on `PurePath`.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/pathlib.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index e16097d..3b401fb 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -1265,7 +1265,7 @@ Below is a table mapping various :mod:`os` functions to their corresponding :func:`os.link` :meth:`Path.hardlink_to` :func:`os.symlink` :meth:`Path.symlink_to` :func:`os.readlink` :meth:`Path.readlink` -:func:`os.path.relpath` :meth:`Path.relative_to` [#]_ +:func:`os.path.relpath` :meth:`PurePath.relative_to` [#]_ :func:`os.stat` :meth:`Path.stat`, :meth:`Path.owner`, :meth:`Path.group` @@ -1280,4 +1280,4 @@ Below is a table mapping various :mod:`os` functions to their corresponding .. rubric:: Footnotes .. [#] :func:`os.path.abspath` normalizes the resulting path, which may change its meaning in the presence of symlinks, while :meth:`Path.absolute` does not. -.. [#] :meth:`Path.relative_to` requires ``self`` to be the subpath of the argument, but :func:`os.path.relpath` does not. +.. [#] :meth:`PurePath.relative_to` requires ``self`` to be the subpath of the argument, but :func:`os.path.relpath` does not. |