Skip to content

Commit

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

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

Resolves pythonGH-126055

* pythongh-126055:  Fix omitted code highlighting
(cherry picked from commit 597d814)

Co-authored-by: Victor Wheeler <[email protected]>
  • Loading branch information
vwheeler63 authored and miss-islington committed Oct 30, 2024
1 parent 76c800f commit b6c37de
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 @@ -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

Expand Down

0 comments on commit b6c37de

Please sign in to comment.