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: Partially fix shutil.rmtree() recursion error on deep trees (GH-119634) #119748

Merged
merged 1 commit into from
May 29, 2024

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented May 29, 2024

Make shutil._rmtree_unsafe() call os.walk(), which is implemented
without recursion.

shutil._rmtree_safe_fd() is not affected and can still raise a recursion
error.

(cherry picked from commit a150679)

Co-authored-by: Barney Gale [email protected]
Co-authored-by: Jelle Zijlstra [email protected]

…ep trees (pythonGH-119634)

Make `shutil._rmtree_unsafe()` call `os.walk()`, which is implemented
without recursion.

`shutil._rmtree_safe_fd()` is not affected and can still raise a recursion
error.

(cherry picked from commit a150679)

Co-authored-by: Barney Gale <[email protected]>
Co-authored-by: Jelle Zijlstra <[email protected]>
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