mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +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
|
@ -68,9 +68,9 @@ def parse_errno_h(fp, dict):
|
|||
if not dict.has_key(number):
|
||||
dict[number] = desc, name
|
||||
else:
|
||||
print 'DUPLICATE', number
|
||||
print '\t', dict[number]
|
||||
print '\t', (desc, name)
|
||||
print('DUPLICATE', number)
|
||||
print('\t', dict[number])
|
||||
print('\t', (desc, name))
|
||||
|
||||
def parse_errors_h(fp, dict):
|
||||
errno_prog = re.compile(ERRORS_PROG)
|
||||
|
@ -95,11 +95,11 @@ def parse_errors_h(fp, dict):
|
|||
if not dict.has_key(number):
|
||||
dict[number] = desc, name
|
||||
else:
|
||||
print 'DUPLICATE', number
|
||||
print '\t', dict[number]
|
||||
print '\t', (desc, name)
|
||||
print('DUPLICATE', number)
|
||||
print('\t', dict[number])
|
||||
print('\t', (desc, name))
|
||||
if len(desc) > len(dict[number][0]):
|
||||
print 'Pick second one'
|
||||
print('Pick second one')
|
||||
dict[number] = desc, name
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue