]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-126055: Add omitted command (in docs [os.walk]) for code to fulfill `shuti...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 30 Oct 2024 20:16:00 +0000 (21:16 +0100)
committerGitHub <noreply@github.com>
Wed, 30 Oct 2024 20:16:00 +0000 (13:16 -0700)
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 <vwheeler63@users.noreply.github.com>
Doc/library/os.rst

index 2984b3dc9ae861a5c5261ebc16a39931c52db1ce..e118b1e861f768a5eedbbc0a355769700ff87302 100644 (file)
@@ -3645,6 +3645,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