https://github.com/python/cpython
Revision 4a59c9699ca8688359c460f98127a12e2db6e63b authored by Zsolt Cserna on 24 October 2018, 21:22:27 UTC, committed by Victor Stinner on 24 October 2018, 21:22:27 UTC
Fix the documentation of copy2, as it does not copy file ownership (user and
group), only mode, mtime, atime and flags.

The original text was confusing to developers as it suggested that this
command is the same as 'cp -p', but according to cp(1), '-p' copies file
ownership as well.

Clarify which metadata is copied by shutil.copystat in its docstring.

(cherry picked from commit 4f399be0e70d8b5516b6213568b7665765bb3114)
1 parent a1f45ec
History
Tip revision: 4a59c9699ca8688359c460f98127a12e2db6e63b authored by Zsolt Cserna on 24 October 2018, 21:22:27 UTC
[2.7] bpo-34260, shutil: fix copy2 and copystat documentation (GH-8523) (GH-10071)
Tip revision: 4a59c96
File Mode Size
.github
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.bzrignore -rw-r--r-- 552 bytes
.gitattributes -rw-r--r-- 809 bytes
.gitignore -rw-r--r-- 1.2 KB
.travis.yml -rw-r--r-- 3.8 KB
LICENSE -rw-r--r-- 12.5 KB
Makefile.pre.in -rw-r--r-- 48.1 KB
README -rw-r--r-- 54.4 KB
aclocal.m4 -rw-r--r-- 10.7 KB
config.guess -rwxr-xr-x 43.2 KB
config.sub -rwxr-xr-x 35.7 KB
configure -rwxr-xr-x 439.1 KB
configure.ac -rw-r--r-- 142.7 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 35.0 KB
setup.py -rw-r--r-- 98.2 KB

README

back to top