From b535afc97d828e5cb20d4c9169b4db87a58342e8 Mon Sep 17 00:00:00 2001 From: Aurelio Jargas Date: Wed, 2 May 2018 18:09:42 -0300 Subject: [PATCH] Hide module name from local (anchor) links Inside all the methods descriptions, local links to other methods do not show the module name. For example, it's: copy2() uses copystat() to copy the file metadata. not: shutil.copy2() uses shutil.copystat() to copy the file metadata. This commit fixes the very few outliers that were not following that pattern. --- Doc/library/shutil.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index 1527deb167f1e3..07f583faf7b164 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -52,7 +52,7 @@ Directory and files operations Copy the contents (no metadata) of the file named *src* to a file named *dst* and return *dst*. *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. @@ -200,7 +200,7 @@ Directory and files operations directory, named by *dst*, must not already exist; it will be created as well as missing parent directories. Permissions and times of directories are copied with :func:`copystat`, individual files are copied using - :func:`shutil.copy2`. +   :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 @@ -228,8 +228,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.