aboutsummaryrefslogtreecommitdiffstats
path: root/util/prompt.py
diff options
context:
space:
mode:
authorLMBishop <13875753+LMBishop@users.noreply.github.com>2023-07-20 21:19:29 +0100
committerLMBishop <13875753+LMBishop@users.noreply.github.com>2023-07-20 21:20:55 +0100
commit0a07704d6dc53bf3a35d4aadfa240586f55e9487 (patch)
treedc7d45dfd0b74b58fa7f19d09c61b4981cd7dc25 /util/prompt.py
parent961c56632ba5c2e3937bced415697096ef8c8344 (diff)
Replace python installer
Diffstat (limited to 'util/prompt.py')
-rw-r--r--util/prompt.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/util/prompt.py b/util/prompt.py
deleted file mode 100644
index d6eb17b..0000000
--- a/util/prompt.py
+++ /dev/null
@@ -1,12 +0,0 @@
-import sys
-
-
-def query_yes_no(question, default):
- if default == True:
- prompt = " [Y/n] "
- else:
- prompt = " [y/N] "
-
- sys.stdout.write(question + prompt)
- choice = input().lower()
- return True if choice == "y" else (False if choice == "n" else default)