Fix raw_input

This commit is contained in:
Jingyu Zhou 2021-05-08 16:29:07 -07:00
parent 98665f9bae
commit d07f527a98
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ def rewrite_lines(lines, version_re, new_version, suspect_only=True, print_diffs
print('\n'.join(map(lambda pair: ' {:4d}: {}'.format(line_no + 2 + pair[0], pair[1]), enumerate(lines[line_no + 1:line_no + 3]))))
if ask_confirm:
text = raw_input('Looks good (y/n)? ')
text = input('Looks good (y/n)? ')
if not positive_response(text):
print('Okay, skipping.')
new_line = line