Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 47c41b4

Browse files
committed
Issue #23605: os.walk() doc now mentions shutil.rmtree() in the last example
1 parent 101447b commit 47c41b4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/library/os.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2391,8 +2391,9 @@ features:
23912391
if 'CVS' in dirs:
23922392
dirs.remove('CVS') # don't visit CVS directories
23932393

2394-
In the next example, walking the tree bottom-up is essential: :func:`rmdir`
2395-
doesn't allow deleting a directory before the directory is empty::
2394+
In the next example (simple implementation of :func:`shutil.rmtree`),
2395+
walking the tree bottom-up is essential, :func:`rmdir` doesn't allow
2396+
deleting a directory before the directory is empty::
23962397

23972398
# Delete everything reachable from the directory named in "top",
23982399
# assuming there are no symbolic links.

0 commit comments

Comments
 (0)