https://github.com/python/cpython/commit/e6e140db9e1e4299bdfb3d047ff7b79033bbdaa3
commit: e6e140db9e1e4299bdfb3d047ff7b79033bbdaa3
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: willingc <[email protected]>
date: 2024-10-30T13:16:00-07:00
summary:

[3.13] gh-126055:  Add omitted command (in docs [os.walk]) for code to fulfill 
`shutil.rmtree` algorithm (GH-126067) (GH-126199)

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 <[email protected]>

files:
M Doc/library/os.rst

diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 2984b3dc9ae861..e118b1e861f768 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -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
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to