Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.13] GH-89727: Fix shutil.rmtree() recursion error on deep trees (GH-119808) #119918

Merged
merged 1 commit into from
Jun 1, 2024

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 1, 2024

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 a150679.
(cherry picked from commit 53b1981)

Co-authored-by: Barney Gale barney.gale@gmail.com

…ythonGH-119808)

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 a150679.
(cherry picked from commit 53b1981)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
@barneygale barneygale merged commit 225c3cd into python:3.13 Jun 1, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants