mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +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
|
@ -50,9 +50,9 @@ VERBOSE = 0
|
|||
|
||||
|
||||
def usage(code, msg=''):
|
||||
print __doc__ % globals()
|
||||
print(__doc__ % globals())
|
||||
if msg:
|
||||
print msg
|
||||
print(msg)
|
||||
sys.exit(code)
|
||||
|
||||
|
||||
|
@ -92,10 +92,10 @@ def process(file):
|
|||
i = data.find(OLD_NOTICE)
|
||||
if i < 0:
|
||||
if VERBOSE:
|
||||
print 'no change:', file
|
||||
print('no change:', file)
|
||||
return
|
||||
elif DRYRUN or VERBOSE:
|
||||
print ' change:', file
|
||||
print(' change:', file)
|
||||
if DRYRUN:
|
||||
# Don't actually change the file
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue