diff options
author | Miss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-10-21 05:16:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-21 05:16:21 (GMT) |
commit | 6443a8ccc886749f5e83a8ca073006742b605d90 (patch) | |
tree | daf045130c681ccc30e01badaadf3b9d006e706a /Doc | |
parent | 058affc09f0f105444ec62c880907a512b785b72 (diff) | |
download | cpython-6443a8ccc886749f5e83a8ca073006742b605d90.zip cpython-6443a8ccc886749f5e83a8ca073006742b605d90.tar.gz cpython-6443a8ccc886749f5e83a8ca073006742b605d90.tar.bz2 |
bpo-41646: Mention path-like objects support in the docs for shutil.copy() (GH-22208)
(cherry picked from commit 8f2b991eef062c22c429a96983c78be007180b66)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/shutil.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index 00c7d10..b5eeec8 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -158,9 +158,9 @@ Directory and files operations .. function:: copy(src, dst, *, follow_symlinks=True) Copies the file *src* to the file or directory *dst*. *src* and *dst* - should be strings. If *dst* specifies a directory, the file will be - copied into *dst* using the base filename from *src*. Returns the - path to the newly created file. + should be :term:`path-like objects <path-like object>` or strings. If + *dst* specifies a directory, the file will be copied into *dst* using the + base filename from *src*. Returns the path to the newly created file. If *follow_symlinks* is false, and *src* is a symbolic link, *dst* will be created as a symbolic link. If *follow_symlinks* |