Clarify that shutil's copy functions can accept path-like values (GH-15141)
(cherry picked from commit 9488a5289de2ceecdfd2098cd70d215f96c4e745)
Co-authored-by: Boris Verhovsky <boris.verk@gmail.com>
diff --git a/Lib/shutil.py b/Lib/shutil.py
index 561ad71..5c1255a 100644
--- a/Lib/shutil.py
+++ b/Lib/shutil.py
@@ -330,7 +330,8 @@
Copy the permission bits, last access time, last modification time, and
flags from `src` to `dst`. On Linux, copystat() also copies the "extended
attributes" where possible. The file contents, owner, and group are
- unaffected. `src` and `dst` are path names given as strings.
+ unaffected. `src` and `dst` are path-like objects or path names given as
+ strings.
If the optional flag `follow_symlinks` is not set, symlinks aren't
followed if and only if both `src` and `dst` are symlinks.