]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41646: Mention path-like objects support in the docs for shutil.copy() (GH-22208)
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 21 Oct 2020 05:16:21 +0000 (22:16 -0700)
committerGitHub <noreply@github.com>
Wed, 21 Oct 2020 05:16:21 +0000 (14:16 +0900)
(cherry picked from commit 8f2b991eef062c22c429a96983c78be007180b66)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Doc/library/shutil.rst

index 00c7d1049e6a0bd399c739b1e5666dcc54c9fb17..b5eeec85fb85df164e7e6faf996d1968bbfeb87a 100644 (file)
@@ -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*