Skip to content

Commit f2315ee

Browse files
[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 597d814) Co-authored-by: Victor Wheeler <[email protected]>
1 parent 76c800f commit f2315ee

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
@@ -3571,6 +3571,7 @@ features:
35713571
os.remove(os.path.join(root, name))
35723572
for name in dirs:
35733573
os.rmdir(os.path.join(root, name))
3574+
os.rmdir(top)
35743575

35753576
.. audit-event:: os.walk top,topdown,onerror,followlinks os.walk
35763577

0 commit comments

Comments
 (0)