From 08e4b96d06e23fcf556b2285e3c0d743da22a98a Mon Sep 17 00:00:00 2001 From: Lakshya Upadhyaya Date: Thu, 6 Nov 2025 15:17:03 +0000 Subject: [PATCH 1/2] Doc: Document that shutil.Error is a subclass of OSError Fixes #141045 --- Doc/library/shutil.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index 3a4631e7c657fe..bd1f4dd36b75f0 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -517,7 +517,7 @@ Directory and files operations This exception collects exceptions that are raised during a multi-file operation. For :func:`copytree`, the exception argument is a list of 3-tuples - (*srcname*, *dstname*, *exception*). + (*srcname*, *dstname*, *exception*). :exc:`Error` is a subclass of :exc:`OSError`. .. _shutil-platform-dependent-efficient-copy-operations: From 38eaae5526b9d051cfc82a2132bfd8740b687060 Mon Sep 17 00:00:00 2001 From: Lakshya Upadhyaya Date: Thu, 6 Nov 2025 21:38:19 +0530 Subject: [PATCH 2/2] Update Doc/library/shutil.rst Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> --- Doc/library/shutil.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index bd1f4dd36b75f0..b85820fb1b6f1c 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -517,7 +517,7 @@ Directory and files operations This exception collects exceptions that are raised during a multi-file operation. For :func:`copytree`, the exception argument is a list of 3-tuples - (*srcname*, *dstname*, *exception*). :exc:`Error` is a subclass of :exc:`OSError`. + (*srcname*, *dstname*, *exception*). :exc:`!Error` is a subclass of :exc:`OSError`. .. _shutil-platform-dependent-efficient-copy-operations: