Skip to content

Commit 70ee0cd

Browse files
authored
bpo-29784: Fix the reference to shutil.copy in the docs (pythonGH-602)
1 parent 4b2a2a4 commit 70ee0cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/shutil.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Directory and files operations
153153
is true and *src* is a symbolic link, *dst* will be a copy of
154154
the file *src* refers to.
155155

156-
:func:`copy` copies the file data and the file's permission
156+
:func:`~shutil.copy` copies the file data and the file's permission
157157
mode (see :func:`os.chmod`). Other metadata, like the
158158
file's creation and modification times, is not preserved.
159159
To preserve all file metadata from the original, use
@@ -302,7 +302,7 @@ Directory and files operations
302302
*src* and *dst*, and will be used to copy *src* to *dest* if
303303
:func:`os.rename` cannot be used. If the source is a directory,
304304
:func:`copytree` is called, passing it the :func:`copy_function`. The
305-
default *copy_function* is :func:`copy2`. Using :func:`copy` as the
305+
default *copy_function* is :func:`copy2`. Using :func:`~shutil.copy` as the
306306
*copy_function* allows the move to succeed when it is not possible to also
307307
copy the metadata, at the expense of not copying any of the metadata.
308308

0 commit comments

Comments
 (0)