mirror of
https://github.com/python/cpython.git
synced 2025-11-28 06:06:26 +00:00
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
This commit is contained in:
parent
4f826214b3
commit
597d814334
1 changed files with 1 additions and 0 deletions
|
|
@ -3675,6 +3675,7 @@ features:
|
||||||
os.remove(os.path.join(root, name))
|
os.remove(os.path.join(root, name))
|
||||||
for name in dirs:
|
for name in dirs:
|
||||||
os.rmdir(os.path.join(root, name))
|
os.rmdir(os.path.join(root, name))
|
||||||
|
os.rmdir(top)
|
||||||
|
|
||||||
.. audit-event:: os.walk top,topdown,onerror,followlinks os.walk
|
.. audit-event:: os.walk top,topdown,onerror,followlinks os.walk
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue