]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
shutil.copyfile(src,dst) was clobbering the file when the src and dst were
authorRaymond Hettinger <python@rcn.com>
Sun, 8 Sep 2002 20:43:59 +0000 (20:43 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 8 Sep 2002 20:43:59 +0000 (20:43 +0000)
commit57e79459fa872c4fc1724e34b9d2f90d53aac818
tree8fbc16ff278a45db195eb98c8a6921cbdaf9a5c3
parent513069028fed8a43474a86bfa823bbd0753deca1
shutil.copyfile(src,dst) was clobbering the file when the src and dst were
the same.   Added check to verify the two names are not the same.  Does not
check the actual files to see if there is a symbolic link.

Closes SF bug 490165 and Tzot's patch 604600.
Lib/shutil.py