Convert print statements to function calls in Tools/.

This commit is contained in:
Collin Winter 2007-08-03 17:06:41 +00:00
parent e5d0e8431f
commit 6afaeb757a
66 changed files with 777 additions and 779 deletions

View file

@ -18,14 +18,14 @@ def getargs():
args = sys.argv[1:]
if args:
return args
print 'No arguments, checking almost *, in "ls -t" order'
print('No arguments, checking almost *, in "ls -t" order')
list = []
for file in os.listdir(os.curdir):
if not skipfile(file):
list.append((getmtime(file), file))
list.sort()
if not list:
print 'Nothing to do -- exit 1'
print('Nothing to do -- exit 1')
sys.exit(1)
list.sort()
list.reverse()
@ -89,7 +89,7 @@ def badsuffix(file):
def go(args):
for file in args:
print file + ':'
print(file + ':')
if differing(file):
showdiffs(file)
if askyesno('Check in ' + file + ' ? '):
@ -119,4 +119,4 @@ if __name__ == '__main__':
setup()
go(getargs())
except KeyboardInterrupt:
print '[Intr]'
print('[Intr]')