summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/untabify.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/untabify.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/untabify.py')
-rwxr-xr-xTools/scripts/untabify.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/scripts/untabify.py b/Tools/scripts/untabify.py
index e4a2cc0..49e9049 100755
--- a/Tools/scripts/untabify.py
+++ b/Tools/scripts/untabify.py
@@ -13,8 +13,8 @@ def main():
if not args:
raise getopt.error, "At least one file argument required"
except getopt.error as msg:
- print msg
- print "usage:", sys.argv[0], "[-t tabwidth] file ..."
+ print(msg)
+ print("usage:", sys.argv[0], "[-t tabwidth] file ...")
return
for optname, optvalue in opts:
if optname == '-t':
@@ -29,7 +29,7 @@ def process(filename, tabsize):
text = f.read()
f.close()
except IOError as msg:
- print "%r: I/O error: %s" % (filename, msg)
+ print("%r: I/O error: %s" % (filename, msg))
return
newtext = text.expandtabs(tabsize)
if newtext == text:
@@ -46,7 +46,7 @@ def process(filename, tabsize):
f = open(filename, "w")
f.write(newtext)
f.close()
- print filename
+ print(filename)
if __name__ == '__main__':
main()