Skip to content

Commit 8f2b991

Browse files
authored
bpo-41646: Mention path-like objects support in the docs for shutil.copy() (GH-22208)
1 parent efcbe78 commit 8f2b991

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/shutil.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ Directory and files operations
158158
.. function:: copy(src, dst, *, follow_symlinks=True)
159159

160160
Copies the file *src* to the file or directory *dst*. *src* and *dst*
161-
should be strings. If *dst* specifies a directory, the file will be
162-
copied into *dst* using the base filename from *src*. Returns the
163-
path to the newly created file.
161+
should be :term:`path-like objects <path-like object>` or strings. If
162+
*dst* specifies a directory, the file will be copied into *dst* using the
163+
base filename from *src*. Returns the path to the newly created file.
164164

165165
If *follow_symlinks* is false, and *src* is a symbolic link,
166166
*dst* will be created as a symbolic link. If *follow_symlinks*

0 commit comments

Comments
 (0)