FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.12] GH-89727: Partially fix `shutil.rmtree()` recursion error on deep trees (GH-119634) by barneygale · Pull Request #119749 · python/cpython · GitHub

/ cpython Public

[3.12] GH-89727: Partially fix shutil.rmtree() recursion error on deep trees (GH-119634) - #119749

Merged
barneygale merged 2 commits into
python:3.12from
barneygale:backport-a150679-3.12
May 29, 2024
Merged

[3.12] GH-89727: Partially fix shutil.rmtree() recursion error on deep trees (GH-119634)#119749
barneygale merged 2 commits into
python:3.12from
barneygale:backport-a150679-3.12

Conversation

barneygale commented May 29, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

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 jelle.zijlstra@gmail.com.

(cherry picked from commit a150679)

barneygale and others added 2 commits May 29, 2024 21:20
…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 <jelle.zijlstra@gmail.com>
(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 <jelle.zijlstra@gmail.com>.
(cherry picked from commit a150679)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL