https://github.com/python/cpython/commit/badab2c1a97b574f3339889b492ba5cf9aec4980 commit: badab2c1a97b574f3339889b492ba5cf9aec4980 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: hugovk <[email protected]> date: 2025-09-11T11:50:32+03:00 summary:
[3.14] Docs: Fix typo in `os.fwalk()` example (GH-138486) (#138500) Co-authored-by: William Andrea <[email protected]> files: M Doc/library/os.rst diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 1e54cfec609bd2..348bac1c0ed308 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -3760,9 +3760,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 _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
