summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Wheeler <vwheeler63@users.noreply.github.com>2024-10-30 18:22:58 (GMT)
committerGitHub <noreply@github.com>2024-10-30 18:22:58 (GMT)
commit597d814334742dde386a4d2979b9418aee6fcaba (patch)
treecb945609b22229f51913dc38e3887f221b610573 /Doc
parent4f826214b30ad50365f45bf07e4a02f34f897ab5 (diff)
downloadcpython-597d814334742dde386a4d2979b9418aee6fcaba.zip
cpython-597d814334742dde386a4d2979b9418aee6fcaba.tar.gz
cpython-597d814334742dde386a4d2979b9418aee6fcaba.tar.bz2
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
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/os.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 081d7a6..f9cded4 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -3675,6 +3675,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