From: Victor Wheeler Date: Wed, 30 Oct 2024 18:22:58 +0000 (-0600) Subject: gh-126055: Add omitted command (in docs [os.walk]) for code to fulfill `shutil.rmtre... X-Git-Tag: v3.14.0a2~238 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=597d814334742dde386a4d2979b9418aee6fcaba;p=thirdparty%2FPython%2Fcpython.git 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 --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 081d7a6f97b0..f9cded40c2c7 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