mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Convert print statements to function calls in Tools/.
This commit is contained in:
parent
e5d0e8431f
commit
6afaeb757a
66 changed files with 777 additions and 779 deletions
|
@ -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]')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue