diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-09-09 17:18:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-09 17:18:51 (GMT) |
commit | 0468a85cc4a3bd870f7e119ef8e6a2af0177ac56 (patch) | |
tree | 4b4c474bf045c299b439c541d98c3006c8d604e9 /Lib/shutil.py | |
parent | 5731172bb1e958b1d80b18eaf88d3f2f93cfccdd (diff) | |
download | cpython-0468a85cc4a3bd870f7e119ef8e6a2af0177ac56.zip cpython-0468a85cc4a3bd870f7e119ef8e6a2af0177ac56.tar.gz cpython-0468a85cc4a3bd870f7e119ef8e6a2af0177ac56.tar.bz2 |
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>
Diffstat (limited to 'Lib/shutil.py')
-rw-r--r-- | Lib/shutil.py | 3 |
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. |