Kaydet (Commit) 0c5598be authored tarafından R David Murray's avatar R David Murray

whatsnew: shutil copyfile SameFileError (#1492704)

üst 8df4ec70
......@@ -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
-----
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment