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

Merged
merged 2 commits into from
May 29, 2024

Conversation

barneygale
Copy link
Contributor

@barneygale barneygale 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.

Co-authored-by: Jelle Zijlstra [email protected].

(cherry picked from commit a150679)

…ep trees (python#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.

Co-authored-by: Jelle Zijlstra <[email protected]>
(cherry picked from commit a150679)
…r on deep 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.

Co-authored-by: Jelle Zijlstra <[email protected]>.
(cherry picked from commit a150679)

Co-authored-by: Barney Gale <[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.

1 participant