Skip to content

Commit

Permalink
gh-126055: Add omitted command (in docs [os.walk]) for code to fulfil…
Browse files Browse the repository at this point in the history
…l `shutil.rmtree` algorithm (GH-126067)

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

Resolves #126055

* gh-126055:  Fix omitted code highlighting
  • Loading branch information
vwheeler63 authored Oct 30, 2024
1 parent 4f82621 commit 597d814
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3675,6 +3675,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

Expand Down

0 comments on commit 597d814

Please sign in to comment.