summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/finddiv.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/finddiv.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/finddiv.py')
-rwxr-xr-xTools/scripts/finddiv.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/scripts/finddiv.py b/Tools/scripts/finddiv.py
index 8fdc52b..9d5862b 100755
--- a/Tools/scripts/finddiv.py
+++ b/Tools/scripts/finddiv.py
@@ -32,7 +32,7 @@ def main():
listnames = 0
for o, a in opts:
if o == "-h":
- print __doc__
+ print(__doc__)
return
if o == "-l":
listnames = 1
@@ -60,11 +60,11 @@ def process(filename, listnames):
for type, token, (row, col), end, line in g:
if token in ("/", "/="):
if listnames:
- print filename
+ print(filename)
break
if row != lastrow:
lastrow = row
- print "%s:%d:%s" % (filename, row, line),
+ print("%s:%d:%s" % (filename, row, line), end=' ')
fp.close()
def processdir(dir, listnames):