Skip to content

Commit 08e9794

Browse files
[3.13] Docs: Fix typo in os.fwalk() example (GH-138486) (GH-138501)
Docs: Fix typo in `os.fwalk()` example (GH-138486) (cherry picked from commit 849a80e) Co-authored-by: William Andrea <[email protected]>
1 parent b5017de commit 08e9794

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
@@ -3687,9 +3687,9 @@ features:
36873687

36883688
import os
36893689
for root, dirs, files, rootfd in os.fwalk('python/Lib/xml'):
3690-
print(root, "consumes", end="")
3690+
print(root, "consumes", end=" ")
36913691
print(sum([os.stat(name, dir_fd=rootfd).st_size for name in files]),
3692-
end="")
3692+
end=" ")
36933693
print("bytes in", len(files), "non-directory files")
36943694
if '__pycache__' in dirs:
36953695
dirs.remove('__pycache__') # don't visit __pycache__ directories

0 commit comments

Comments
 (0)