From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 30 Oct 2024 20:14:27 +0000 (+0100) Subject: [3.12] gh-126055: Add omitted command (in docs [os.walk]) for code to fulfill `shuti... X-Git-Tag: v3.12.8~140 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f2315ee175222bf986de31e654d265bcbb176435;p=thirdparty%2FPython%2Fcpython.git [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 597d814334742dde386a4d2979b9418aee6fcaba) Co-authored-by: Victor Wheeler --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 3a5deaa1d692..423480e927c9 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -3571,6 +3571,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