summaryrefslogtreecommitdiffstats
path: root/Lib/shutil.py
diff options
context:
space:
mode:
authorBoris Verhovsky <boris.verk@gmail.com>2019-09-09 15:51:56 (GMT)
committerSteve Dower <steve.dower@python.org>2019-09-09 15:51:56 (GMT)
commit9488a5289de2ceecdfd2098cd70d215f96c4e745 (patch)
tree8edd8acb331e1b2a06d1db0e09cf2a6abe88ded6 /Lib/shutil.py
parentbb668f798a78af0fd99675a4c7e0d949591f4f2b (diff)
downloadcpython-9488a5289de2ceecdfd2098cd70d215f96c4e745.zip
cpython-9488a5289de2ceecdfd2098cd70d215f96c4e745.tar.gz
cpython-9488a5289de2ceecdfd2098cd70d215f96c4e745.tar.bz2
Clarify that shutil's copy functions can accept path-like values (GH-15141)
Diffstat (limited to 'Lib/shutil.py')
-rw-r--r--Lib/shutil.py3
1 files changed, 2 insertions, 1 deletions
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 @@ def copystat(src, dst, *, follow_symlinks=True):
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.