Skip to content

Commit 849a80e

Browse files
authored
Docs: Fix typo in os.fwalk() example (GH-138486)
1 parent c9cf019 commit 849a80e

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
@@ -3757,9 +3757,9 @@ features:
37573757

37583758
import os
37593759
for root, dirs, files, rootfd in os.fwalk('python/Lib/xml'):
3760-
print(root, "consumes", end="")
3760+
print(root, "consumes", end=" ")
37613761
print(sum([os.stat(name, dir_fd=rootfd).st_size for name in files]),
3762-
end="")
3762+
end=" ")
37633763
print("bytes in", len(files), "non-directory files")
37643764
if '__pycache__' in dirs:
37653765
dirs.remove('__pycache__') # don't visit __pycache__ directories

0 commit comments

Comments
 (0)