Skip to content

Commit f6e17dd

Browse files
aureliojargascsabella
authored andcommitted
Hide module name from local (anchor) links in shutil docs (GH-6695)
1 parent 4ebcd7e commit f6e17dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/shutil.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Directory and files operations
5454
*dst* and return *dst* in the most efficient way possible.
5555
*src* and *dst* are path names given as strings.
5656

57-
*dst* must be the complete target file name; look at :func:`shutil.copy`
57+
*dst* must be the complete target file name; look at :func:`~shutil.copy`
5858
for a copy that accepts a target directory path. If *src* and *dst*
5959
specify the same file, :exc:`SameFileError` is raised.
6060

@@ -218,7 +218,7 @@ Directory and files operations
218218
already exists.
219219

220220
Permissions and times of directories are copied with :func:`copystat`,
221-
individual files are copied using :func:`shutil.copy2`.
221+
individual files are copied using :func:`~shutil.copy2`.
222222

223223
If *symlinks* is true, symbolic links in the source tree are represented as
224224
symbolic links in the new tree and the metadata of the original links will
@@ -246,8 +246,8 @@ Directory and files operations
246246

247247
If *copy_function* is given, it must be a callable that will be used to copy
248248
each file. It will be called with the source path and the destination path
249-
as arguments. By default, :func:`shutil.copy2` is used, but any function
250-
that supports the same signature (like :func:`shutil.copy`) can be used.
249+
  as arguments. By default, :func:`~shutil.copy2` is used, but any function
250+
  that supports the same signature (like :func:`~shutil.copy`) can be used.
251251

252252
.. versionchanged:: 3.3
253253
Copy metadata when *symlinks* is false.

0 commit comments

Comments
 (0)