Skip to content

Commit badab2c

Browse files
[3.14] Docs: Fix typo in os.fwalk() example (GH-138486) (#138500)
Co-authored-by: William Andrea <[email protected]>
1 parent 7fba07a commit badab2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/os.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3760,9 +3760,9 @@ features:
37603760

37613761
import os
37623762
for root, dirs, files, rootfd in os.fwalk('python/Lib/xml'):
3763-
print(root, "consumes", end="")
3763+
print(root, "consumes", end=" ")
37643764
print(sum([os.stat(name, dir_fd=rootfd).st_size for name in files]),
3765-
end="")
3765+
end=" ")
37663766
print("bytes in", len(files), "non-directory files")
37673767
if '__pycache__' in dirs:
37683768
dirs.remove('__pycache__') # don't visit __pycache__ directories

0 commit comments

Comments
 (0)