Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8df4ec7 commit 0c5598bCopy full SHA for 0c5598b
1 file changed
Doc/whatsnew/3.4.rst
@@ -1297,6 +1297,16 @@ and will be automatically closed at the end of the :keyword:`with` block.
1297
(Contributed by Filip Gruszczyński in :issue:`13896`.)
1298
1299
1300
+shutil
1301
+------
1302
+
1303
+:func:`~shutil.copyfile` now raises a specific :exc:`~shutil.Error` subclass,
1304
+:exc:`~shutil.SameFileError`, when the source and destination are the same
1305
+file, which allows an application to take appropriate action on this specific
1306
+error. (Contributed by Atsuo Ishimoto and Hynek Schlawack in
1307
+:issue:`1492704`.)
1308
1309
1310
smtpd
1311
-----
1312
0 commit comments