Skip to content

Commit

Permalink
[3.12] pythonGH-89727: Partially fix shutil.rmtree() recursion erro…
Browse files Browse the repository at this point in the history
…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]>
  • Loading branch information
barneygale committed May 29, 2024
1 parent 3b03217 commit 4ec8d54
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 4ec8d54

Please sign in to comment.