diff options
author | R David Murray <rdmurray@bitdance.com> | 2014-03-10 20:12:10 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2014-03-10 20:12:10 (GMT) |
commit | 0c5598beaf6984853659572194002f2ea0b20e76 (patch) | |
tree | 8e2e25b1c406db87aa93476069cf957b372f18f6 /Doc | |
parent | 8df4ec70d3b5dacea4e6ee011c3d757261ef1969 (diff) | |
download | cpython-0c5598beaf6984853659572194002f2ea0b20e76.zip cpython-0c5598beaf6984853659572194002f2ea0b20e76.tar.gz cpython-0c5598beaf6984853659572194002f2ea0b20e76.tar.bz2 |
whatsnew: shutil copyfile SameFileError (#1492704)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.4.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst index e5e720e..d210a8f 100644 --- a/Doc/whatsnew/3.4.rst +++ b/Doc/whatsnew/3.4.rst @@ -1297,6 +1297,16 @@ and will be automatically closed at the end of the :keyword:`with` block. (Contributed by Filip GruszczyĆski in :issue:`13896`.) +shutil +------ + +:func:`~shutil.copyfile` now raises a specific :exc:`~shutil.Error` subclass, +:exc:`~shutil.SameFileError`, when the source and destination are the same +file, which allows an application to take appropriate action on this specific +error. (Contributed by Atsuo Ishimoto and Hynek Schlawack in +:issue:`1492704`.) + + smtpd ----- |