From c484b79a7672d6c5d0886199955b015d1b4bc387 Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Thu, 8 Oct 2020 09:23:08 -0500 Subject: uhd_images_downloader: Remove unused default_no parameter This parameter isn't used by any callers of the function. Additionally, it doesn't actually change the default answer. --- host/utils/uhd_images_downloader.py.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'host') 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 -- cgit v1.2.3