summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/crlf.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-03 17:06:41 (GMT)
committerCollin Winter <collinw@gmail.com>2007-08-03 17:06:41 (GMT)
commit6afaeb757af0dbd8508a0f2352ade61e41bec84c (patch)
treef1b31bc7138b17ff39791bbb45aa81583c3b6e46 /Tools/scripts/crlf.py
parente5d0e8431f929cad2da77b63fe1b7dc0ff21a428 (diff)
downloadcpython-6afaeb757af0dbd8508a0f2352ade61e41bec84c.zip
cpython-6afaeb757af0dbd8508a0f2352ade61e41bec84c.tar.gz
cpython-6afaeb757af0dbd8508a0f2352ade61e41bec84c.tar.bz2
Convert print statements to function calls in Tools/.
Diffstat (limited to 'Tools/scripts/crlf.py')
-rwxr-xr-xTools/scripts/crlf.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/scripts/crlf.py b/Tools/scripts/crlf.py
index a975cb2..3dfa131 100755
--- a/Tools/scripts/crlf.py
+++ b/Tools/scripts/crlf.py
@@ -6,15 +6,15 @@ import sys, os
def main():
for filename in sys.argv[1:]:
if os.path.isdir(filename):
- print filename, "Directory!"
+ print(filename, "Directory!")
continue
data = open(filename, "rb").read()
if '\0' in data:
- print filename, "Binary!"
+ print(filename, "Binary!")
continue
newdata = data.replace("\r\n", "\n")
if newdata != data:
- print filename
+ print(filename)
f = open(filename, "wb")
f.write(newdata)
f.close()