Merge pull request #8866 from ethereum/make_script_case_insensitive

[Trivial] Make error correction script user interaction case insensitive
This commit is contained in:
chriseth 2020-05-07 11:45:21 +02:00 committed by GitHub
commit 98db712292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,9 +126,9 @@ def main():
f"Please commit current changes first, and review the results when the script finishes.\n\n" f"Please commit current changes first, and review the results when the script finishes.\n\n"
f"Do you want to start [Y/N]? " f"Do you want to start [Y/N]? "
) )
while len(answer) == 0 or answer not in "YN": while len(answer) == 0 or answer not in "YNyn":
answer = input("[Y/N]? ") answer = input("[Y/N]? ")
if answer != "Y": if answer not in "yY":
return return
source_file_names = find_source_files(cwd) source_file_names = find_source_files(cwd)