Skip to content

Commit 51c58e3

Browse files
committed
Update os.fwalk docstrings
1 parent f819a76 commit 51c58e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/os.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,13 +460,13 @@ def fwalk(top=".", topdown=True, onerror=None, *, follow_symlinks=False, dir_fd=
460460
Example:
461461
462462
import os
463-
for root, dirs, files, rootfd in os.fwalk('python/Lib/email'):
463+
for root, dirs, files, rootfd in os.fwalk('python/Lib'):
464464
print(root, "consumes", end="")
465465
print(sum(os.stat(name, dir_fd=rootfd).st_size for name in files),
466466
end="")
467467
print("bytes in", len(files), "non-directory files")
468-
if 'CVS' in dirs:
469-
dirs.remove('CVS') # don't visit CVS directories
468+
if '__pycache__' in dirs:
469+
dirs.remove('__pycache__') # don't visit __pycache__ directories
470470
"""
471471
sys.audit("os.fwalk", top, topdown, onerror, follow_symlinks, dir_fd)
472472
top = fspath(top)

0 commit comments

Comments
 (0)