summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-05-13 04:55:24 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-05-13 04:55:24 (GMT)
commit752abd0d3cc66f84f551650b8424248b202a16a4 (patch)
treef5302f8a246115f3f61a1414a94c8d2ce12a3a01 /Lib/os.py
parent8321f978918e3ae4de18672770c6504dcae82343 (diff)
downloadcpython-752abd0d3cc66f84f551650b8424248b202a16a4.zip
cpython-752abd0d3cc66f84f551650b8424248b202a16a4.tar.gz
cpython-752abd0d3cc66f84f551650b8424248b202a16a4.tar.bz2
Convert a lot of print statements to print functions in docstrings,
documentation, and unused/rarely used functions.
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/os.py b/Lib/os.py
index b6e1570..b5ade28 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -254,9 +254,9 @@ 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",
- print sum([getsize(join(root, name)) for name in files]),
- print "bytes in", len(files), "non-directory files"
+ print(root, "consumes", end="")
+ 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
"""