summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-06-01 19:38:55 (GMT)
committerGitHub <noreply@github.com>2024-06-01 19:38:55 (GMT)
commit225c3cd6c1b2e768f1c879c271b48ec27a99cb5b (patch)
treec161ec6c2803854029c2e21966e33e422e5fbd44 /Misc
parent99d0f51e61b6ab3d58c034c007b5d9d6156fdf3b (diff)
downloadcpython-225c3cd6c1b2e768f1c879c271b48ec27a99cb5b.zip
cpython-225c3cd6c1b2e768f1c879c271b48ec27a99cb5b.tar.gz
cpython-225c3cd6c1b2e768f1c879c271b48ec27a99cb5b.tar.bz2
[3.13] GH-89727: Fix `shutil.rmtree()` recursion error on deep trees (GH-119808) (#119918)
Implement `shutil._rmtree_safe_fd()` using a list as a stack to avoid emitting recursion errors on deeply nested trees. `shutil._rmtree_unsafe()` was fixed in a150679f90. (cherry picked from commit 53b1981fb0cda6c656069e992f172fc6aad7c99c) Co-authored-by: Barney Gale <barney.gale@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2024-05-30-21-37-05.gh-issue-89727.D6S9ig.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-05-30-21-37-05.gh-issue-89727.D6S9ig.rst b/Misc/NEWS.d/next/Library/2024-05-30-21-37-05.gh-issue-89727.D6S9ig.rst
new file mode 100644
index 0000000..854c566
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2024-05-30-21-37-05.gh-issue-89727.D6S9ig.rst
@@ -0,0 +1,2 @@
+Fix issue with :func:`shutil.rmtree` where a :exc:`RecursionError` is raised
+on deep directory trees.