[3.12] gh-126055: Add omitted command (in docs [os.walk]) for code to fulfill shutil.rmtree algorithm (GH-126067) (GH-126200)

gh-126055:  Add omitted command (in docs [os.walk]) for code to fulfill `shutil.rmtree` algorithm (GH-126067)

* gh-126055:  Add omitted command (in docs [os.walk]) for code to fulfill `shutil.rmtree` algorithm.

Resolves GH-126055

* gh-126055:  Fix omitted code highlighting
(cherry picked from commit 597d814334)

Co-authored-by: Victor Wheeler <vwheeler63@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2024-10-30 21:14:27 +01:00 committed by GitHub
parent 76c800f751
commit f2315ee175
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3571,6 +3571,7 @@ features:
os.remove(os.path.join(root, name))
for name in dirs:
os.rmdir(os.path.join(root, name))
os.rmdir(top)
.. audit-event:: os.walk top,topdown,onerror,followlinks os.walk