Skip to content

Commit 597d814

Browse files
authored
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 #126055 * gh-126055: Fix omitted code highlighting
1 parent 4f82621 commit 597d814

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
@@ -3675,6 +3675,7 @@ features:
36753675
os.remove(os.path.join(root, name))
36763676
for name in dirs:
36773677
os.rmdir(os.path.join(root, name))
3678+
os.rmdir(top)
36783679

36793680
.. audit-event:: os.walk top,topdown,onerror,followlinks os.walk
36803681

0 commit comments

Comments
 (0)