mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Run 2to3's print fixer over some places that had been missed.
This commit is contained in:
parent
716c3ac40c
commit
e7bf59f500
51 changed files with 253 additions and 253 deletions
|
@ -6,7 +6,7 @@ import string
|
|||
|
||||
def bgenone(dirname, shortname):
|
||||
os.chdir(dirname)
|
||||
print '%s:'%shortname
|
||||
print('%s:'%shortname)
|
||||
# Sigh, we don't want to lose CVS history, so two
|
||||
# modules have funny names:
|
||||
if shortname == 'carbonevt':
|
||||
|
@ -18,12 +18,12 @@ def bgenone(dirname, shortname):
|
|||
try:
|
||||
m = __import__(modulename)
|
||||
except:
|
||||
print "Error:", shortname, sys.exc_info()[1]
|
||||
print("Error:", shortname, sys.exc_info()[1])
|
||||
return 0
|
||||
try:
|
||||
m.main()
|
||||
except:
|
||||
print "Error:", shortname, sys.exc_info()[1]
|
||||
print("Error:", shortname, sys.exc_info()[1])
|
||||
return 0
|
||||
return 1
|
||||
|
||||
|
@ -45,9 +45,9 @@ def main():
|
|||
success.append(name)
|
||||
else:
|
||||
failure.append(name)
|
||||
print 'Done:', string.join(success, ' ')
|
||||
print('Done:', string.join(success, ' '))
|
||||
if failure:
|
||||
print 'Failed:', string.join(failure, ' ')
|
||||
print('Failed:', string.join(failure, ' '))
|
||||
return 0
|
||||
return 1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue