From 0c5598beaf6984853659572194002f2ea0b20e76 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Mon, 10 Mar 2014 16:12:10 -0400 Subject: [PATCH] whatsnew: shutil copyfile SameFileError (#1492704) --- Doc/whatsnew/3.4.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst index e5e720eca682..d210a8f94b8e 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 ----- -- 2.47.3