diff options
Diffstat (limited to 'host/utils/uhd_images_downloader.py.in')
-rw-r--r-- | host/utils/uhd_images_downloader.py.in | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/host/utils/uhd_images_downloader.py.in b/host/utils/uhd_images_downloader.py.in index 5a0d2fa1d..927d6a481 100644 --- a/host/utils/uhd_images_downloader.py.in +++ b/host/utils/uhd_images_downloader.py.in @@ -180,7 +180,7 @@ def get_images_dir(args): return _DEFAULT_INSTALL_PATH -def ask_permission(question, default_no=True): +def ask_permission(question): """ Ask the question, and have the user type y or n on the keyboard. If the global variable _YES is true, this always returns True without asking the @@ -191,8 +191,7 @@ def ask_permission(question, default_no=True): log("DEBUG", "Assuming the answer is 'yes' for this question: " + question) return True - postfix = "[y/N]" if default_no else "[Y/n]" - answer = input(question + " " + postfix) + answer = input(question + " [y/N]") if answer and answer[0].lower() == 'y': return True return False |