whatsnew: shutil copyfile SameFileError (#1492704)

This commit is contained in:
R David Murray 2014-03-10 16:12:10 -04:00
parent 8df4ec70d3
commit 0c5598beaf
1 changed files with 10 additions and 0 deletions

View File

@ -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`.) (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 smtpd
----- -----