diff options
author | Aurelio Jargas <verde@aurelio.net> | 2019-05-11 02:51:45 (GMT) |
---|---|---|
committer | Cheryl Sabella <cheryl.sabella@gmail.com> | 2019-05-11 02:51:45 (GMT) |
commit | f6e17ddffd3ba52a08e977bd9c6c0d6f2fffa905 (patch) | |
tree | 7a3315f3febb4553e3914764e8b7115f4145d5f0 /Doc/library | |
parent | 4ebcd7e2980d650c711d21b93447af39a8604554 (diff) | |
download | cpython-f6e17ddffd3ba52a08e977bd9c6c0d6f2fffa905.zip cpython-f6e17ddffd3ba52a08e977bd9c6c0d6f2fffa905.tar.gz cpython-f6e17ddffd3ba52a08e977bd9c6c0d6f2fffa905.tar.bz2 |
Hide module name from local (anchor) links in shutil docs (GH-6695)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/shutil.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index 2dc872f..4af5a16 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -54,7 +54,7 @@ Directory and files operations *dst* and return *dst* in the most efficient way possible. *src* and *dst* are path names given as strings. - *dst* must be the complete target file name; look at :func:`shutil.copy` + *dst* must be the complete target file name; look at :func:`~shutil.copy` for a copy that accepts a target directory path. If *src* and *dst* specify the same file, :exc:`SameFileError` is raised. @@ -218,7 +218,7 @@ Directory and files operations already exists. Permissions and times of directories are copied with :func:`copystat`, - individual files are copied using :func:`shutil.copy2`. + individual files are copied using :func:`~shutil.copy2`. If *symlinks* is true, symbolic links in the source tree are represented as symbolic links in the new tree and the metadata of the original links will @@ -246,8 +246,8 @@ Directory and files operations If *copy_function* is given, it must be a callable that will be used to copy each file. It will be called with the source path and the destination path - as arguments. By default, :func:`shutil.copy2` is used, but any function - that supports the same signature (like :func:`shutil.copy`) can be used. + as arguments. By default, :func:`~shutil.copy2` is used, but any function + that supports the same signature (like :func:`~shutil.copy`) can be used. .. versionchanged:: 3.3 Copy metadata when *symlinks* is false. |