summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/pdeps.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/pdeps.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/pdeps.py')
-rwxr-xr-xTools/scripts/pdeps.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/Tools/scripts/pdeps.py b/Tools/scripts/pdeps.py
index da63e35..35b4067 100755
--- a/Tools/scripts/pdeps.py
+++ b/Tools/scripts/pdeps.py
@@ -30,25 +30,25 @@ import os
def main():
args = sys.argv[1:]
if not args:
- print 'usage: pdeps file.py file.py ...'
+ print('usage: pdeps file.py file.py ...')
return 2
#
table = {}
for arg in args:
process(arg, table)
#
- print '--- Uses ---'
+ print('--- Uses ---')
printresults(table)
#
- print '--- Used By ---'
+ print('--- Used By ---')
inv = inverse(table)
printresults(inv)
#
- print '--- Closure of Uses ---'
+ print('--- Closure of Uses ---')
reach = closure(table)
printresults(reach)
#
- print '--- Closure of Used By ---'
+ print('--- Closure of Used By ---')
invreach = inverse(reach)
printresults(invreach)
#
@@ -151,12 +151,12 @@ def printresults(table):
for mod in modules:
list = table[mod]
list.sort()
- print mod.ljust(maxlen), ':',
+ print(mod.ljust(maxlen), ':', end=' ')
if mod in list:
- print '(*)',
+ print('(*)', end=' ')
for ref in list:
- print ref,
- print
+ print(ref, end=' ')
+ print()
# Call main and honor exit status