Skip to content

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