summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/combinerefs.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/combinerefs.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/combinerefs.py')
-rw-r--r--Tools/scripts/combinerefs.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Tools/scripts/combinerefs.py b/Tools/scripts/combinerefs.py
index f04b29f..34ce860 100644
--- a/Tools/scripts/combinerefs.py
+++ b/Tools/scripts/combinerefs.py
@@ -102,7 +102,7 @@ def combine(fname):
addr, addr2rc[addr], addr2guts[addr] = m.groups()
before += 1
else:
- print '??? skipped:', line
+ print('??? skipped:', line)
after = 0
for line in read(fi, crack, True):
@@ -111,17 +111,17 @@ def combine(fname):
assert m
addr, rc, guts = m.groups() # guts is type name here
if addr not in addr2rc:
- print '??? new object created while tearing down:', line.rstrip()
+ print('??? new object created while tearing down:', line.rstrip())
continue
- print addr,
+ print(addr, end=' ')
if rc == addr2rc[addr]:
- print '[%s]' % rc,
+ print('[%s]' % rc, end=' ')
else:
- print '[%s->%s]' % (addr2rc[addr], rc),
- print guts, addr2guts[addr]
+ print('[%s->%s]' % (addr2rc[addr], rc), end=' ')
+ print(guts, addr2guts[addr])
f.close()
- print "%d objects before, %d after" % (before, after)
+ print("%d objects before, %d after" % (before, after))
if __name__ == '__main__':
combine(sys.argv[1])