whatsnew: shutil copyfile SameFileError (#1492704)
This commit is contained in:
parent
8df4ec70d3
commit
0c5598beaf
|
@ -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
|
||||
-----
|
||||
|
||||
|
|
Loading…
Reference in New Issue