Skip to content

Commit 2a38e1a

Browse files
authored
Fix missing spaces in os.walk example (GH-29918)
1 parent 5f1c205 commit 2a38e1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/os.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ def walk(top, topdown=True, onerror=None, followlinks=False):
331331
import os
332332
from os.path import join, getsize
333333
for root, dirs, files in os.walk('python/Lib/email'):
334-
print(root, "consumes", end="")
335-
print(sum(getsize(join(root, name)) for name in files), end="")
334+
print(root, "consumes ")
335+
print(sum(getsize(join(root, name)) for name in files), end=" ")
336336
print("bytes in", len(files), "non-directory files")
337337
if 'CVS' in dirs:
338338
dirs.remove('CVS') # don't visit CVS directories

0 commit comments

Comments
 (0)