https://github.com/python/cpython/commit/08e9794517063c8cd92c48714071b1d3c60b71bd
commit: 08e9794517063c8cd92c48714071b1d3c60b71bd
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: ZeroIntensity <[email protected]>
date: 2025-09-04T12:39:58Z
summary:

[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 849a80ec412c36bbca5d400a7db5645b8cf54f1f)

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 266ccd8aec0b0a..a03270224a4522 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -3687,9 +3687,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]

Reply via email to