From 2a38e1ab65cb28af3babda17f6ad3f8e514a7455 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=B0=E5=86=A2?= <49506152+BruceLee569@users.noreply.github.com> Date: Fri, 18 Feb 2022 12:10:33 +0800 Subject: Fix missing spaces in os.walk example (GH-29918) --- Lib/os.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/os.py b/Lib/os.py index ab7ef3c..4626d1f 100644 --- a/Lib/os.py +++ b/Lib/os.py @@ -331,8 +331,8 @@ def walk(top, topdown=True, onerror=None, followlinks=False): import os from os.path import join, getsize for root, dirs, files in os.walk('python/Lib/email'): - print(root, "consumes", end="") - print(sum(getsize(join(root, name)) for name in files), end="") + print(root, "consumes ") + print(sum(getsize(join(root, name)) for name in files), end=" ") print("bytes in", len(files), "non-directory files") if 'CVS' in dirs: dirs.remove('CVS') # don't visit CVS directories -- cgit v0.12