summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
author辰冢 <49506152+BruceLee569@users.noreply.github.com>2022-02-18 04:10:33 (GMT)
committerGitHub <noreply@github.com>2022-02-18 04:10:33 (GMT)
commit2a38e1ab65cb28af3babda17f6ad3f8e514a7455 (patch)
treee3f37e3aa4e12a3a756a76fe509b33aa4fa1f012 /Lib/os.py
parent5f1c205dcec0adf68b76ba78247a0ec1fa9a7b66 (diff)
downloadcpython-2a38e1ab65cb28af3babda17f6ad3f8e514a7455.zip
cpython-2a38e1ab65cb28af3babda17f6ad3f8e514a7455.tar.gz
cpython-2a38e1ab65cb28af3babda17f6ad3f8e514a7455.tar.bz2
Fix missing spaces in os.walk example (GH-29918)
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py4
1 files 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