From 1fa71edec68a5544988de9547500077164f7501d Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 7 Dec 2023 18:55:15 +0200 Subject: [PATCH 1/2] Add a versionchanged directive for gh-94692 --- Doc/library/shutil.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index d30d289710b129..579d474c934e62 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -346,6 +346,8 @@ Directory and files operations .. versionchanged:: 3.13 :func:`!rmtree` now ignores :exc:`FileNotFoundError` exceptions for all but the top-level path. + Exceptions other than :exc:`OSError` are now always propagated to + the caller. .. attribute:: rmtree.avoids_symlink_attacks From 375c1c74079458f21046fd560fd9f6aef3ede6b0 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 7 Dec 2023 20:13:26 +0200 Subject: [PATCH 2/2] Update Doc/library/shutil.rst Co-authored-by: Alex Waygood --- Doc/library/shutil.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index 579d474c934e62..f61ef8b0ecc7ba 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -346,8 +346,8 @@ Directory and files operations .. versionchanged:: 3.13 :func:`!rmtree` now ignores :exc:`FileNotFoundError` exceptions for all but the top-level path. - Exceptions other than :exc:`OSError` are now always propagated to - the caller. + Exceptions other than :exc:`OSError` and subclasses of :exc:`!OSError` + are now always propagated to the caller. .. attribute:: rmtree.avoids_symlink_attacks