SIGN IN SIGN UP

[3.12] GH-89727: Fix `shutil.rmtree()` recursion error on deep trees (GH-119808) (#119919)

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 a150679f90.

(cherry picked from commit 53b1981fb0cda6c656069e992f172fc6aad7c99c)
B
Barney Gale committed
feb7870b46feb4b758203a27deab7d674f19923b
Parent: 60393f5
Committed by GitHub <noreply@github.com> on 6/1/2024, 7:39:35 PM