diff options
author | 辰冢 <49506152+BruceLee569@users.noreply.github.com> | 2022-02-18 04:10:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-18 04:10:33 (GMT) |
commit | 2a38e1ab65cb28af3babda17f6ad3f8e514a7455 (patch) | |
tree | e3f37e3aa4e12a3a756a76fe509b33aa4fa1f012 /Lib/os.py | |
parent | 5f1c205dcec0adf68b76ba78247a0ec1fa9a7b66 (diff) | |
download | cpython-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.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |