From 08e9794517063c8cd92c48714071b1d3c60b71bd Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Thu, 4 Sep 2025 14:39:58 +0200 Subject: [PATCH] [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 <22385371+wjandrea@users.noreply.github.com> --- Doc/library/os.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 266ccd8aec0b..a03270224a45 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 -- 2.47.3