diff options
author | Lane Kolbly <lane.kolbly@ni.com> | 2020-10-08 09:23:08 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-10-15 16:00:54 -0500 |
commit | c484b79a7672d6c5d0886199955b015d1b4bc387 (patch) | |
tree | 2543895c7c6b82efcf7dd178c7b7629ac836fcdb /host/utils/uhd_images_downloader.py.in | |
parent | 31872fa3b9dcb3f1d666546e7d850d7bca17f82a (diff) | |
download | uhd-c484b79a7672d6c5d0886199955b015d1b4bc387.tar.gz uhd-c484b79a7672d6c5d0886199955b015d1b4bc387.tar.bz2 uhd-c484b79a7672d6c5d0886199955b015d1b4bc387.zip |
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.
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 |