Skip to content

Commit e6e140d

Browse files
[3.13] gh-126055: Add omitted command (in docs [os.walk]) for code to fulfill shutil.rmtree algorithm (GH-126067) (GH-126199)
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 597d814) Co-authored-by: Victor Wheeler <vwheeler63@users.noreply.github.com>
1 parent 56b294e commit e6e140d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/library/os.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3645,6 +3645,7 @@ features:
36453645
os.remove(os.path.join(root, name))
36463646
for name in dirs:
36473647
os.rmdir(os.path.join(root, name))
3648+
os.rmdir(top)
36483649

36493650
.. audit-event:: os.walk top,topdown,onerror,followlinks os.walk
36503651

0 commit comments

Comments
 (0)