mirror of
https://github.com/python/cpython.git
synced 2025-12-31 12:33:28 +00:00
Docs: Fix typo in os.fwalk() example (GH-138486)
This commit is contained in:
parent
c9cf019cf5
commit
849a80ec41
1 changed files with 2 additions and 2 deletions
|
|
@ -3757,9 +3757,9 @@ features:
|
|||
|
||||
import os
|
||||
for root, dirs, files, rootfd in os.fwalk('python/Lib/xml'):
|
||||
print(root, "consumes", end="")
|
||||
print(root, "consumes", end=" ")
|
||||
print(sum([os.stat(name, dir_fd=rootfd).st_size for name in files]),
|
||||
end="")
|
||||
end=" ")
|
||||
print("bytes in", len(files), "non-directory files")
|
||||
if '__pycache__' in dirs:
|
||||
dirs.remove('__pycache__') # don't visit __pycache__ directories
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue