summaryrefslogtreecommitdiffstats
path: root/Doc/library/shutil.rst
diff options
context:
space:
mode:
authorMariatta <Mariatta@users.noreply.github.com>2017-03-11 03:36:26 (GMT)
committerGitHub <noreply@github.com>2017-03-11 03:36:26 (GMT)
commit701f13ab930b62a634579951dc610f737f461135 (patch)
tree50dd4b4a2d657d2f67243907190ef35544498e34 /Doc/library/shutil.rst
parent4807fa8386f825d0c71192c59f7e33b99a94bebe (diff)
downloadcpython-701f13ab930b62a634579951dc610f737f461135.zip
cpython-701f13ab930b62a634579951dc610f737f461135.tar.gz
cpython-701f13ab930b62a634579951dc610f737f461135.tar.bz2
bpo-29784: Fix the reference to shutil.copy in the docs (GH-602) (GH-608)
(cherry picked from commit 70ee0cd5c2a3dba82cb8e0c0742c012f9134c040)
Diffstat (limited to 'Doc/library/shutil.rst')
-rw-r--r--Doc/library/shutil.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst
index a85bf33..41e5baf 100644
--- a/Doc/library/shutil.rst
+++ b/Doc/library/shutil.rst
@@ -153,7 +153,7 @@ Directory and files operations
is true and *src* is a symbolic link, *dst* will be a copy of
the file *src* refers to.
- :func:`copy` copies the file data and the file's permission
+ :func:`~shutil.copy` copies the file data and the file's permission
mode (see :func:`os.chmod`). Other metadata, like the
file's creation and modification times, is not preserved.
To preserve all file metadata from the original, use
@@ -302,7 +302,7 @@ Directory and files operations
*src* and *dst*, and will be used to copy *src* to *dest* if
:func:`os.rename` cannot be used. If the source is a directory,
:func:`copytree` is called, passing it the :func:`copy_function`. The
- default *copy_function* is :func:`copy2`. Using :func:`copy` as the
+ default *copy_function* is :func:`copy2`. Using :func:`~shutil.copy` as the
*copy_function* allows the move to succeed when it is not possible to also
copy the metadata, at the expense of not copying any of the metadata.