From: R David Murray Date: Mon, 10 Mar 2014 20:12:10 +0000 (-0400) Subject: whatsnew: shutil copyfile SameFileError (#1492704) X-Git-Tag: v3.4.1rc1~233^2~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c5598beaf6984853659572194002f2ea0b20e76;p=python whatsnew: shutil copyfile SameFileError (#1492704) --- diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst index e5e720eca6..d210a8f94b 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 -----