summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlava Shishkin <slavashishkin@gmail.com>2022-04-16 00:07:13 +0300
committerSlava Shishkin <slavashishkin@gmail.com>2022-04-16 00:19:31 +0300
commitf8c5d13e47ceb978d1230708a8c8c8c668e8b332 (patch)
tree36d6adb06967ae41da53fafe6903c1c3bdd52da5
parent85221058291af125df1c8ba3ae00c5676962e5c7 (diff)
downloadgit-bz-f8c5d13e47ceb978d1230708a8c8c8c668e8b332.tar.gz
upgrade prompt_multi
-rwxr-xr-xgit-bz5
1 files changed, 1 insertions, 4 deletions
diff --git a/git-bz b/git-bz
index 9876ea5..1ca846e 100755
--- a/git-bz
+++ b/git-bz
@@ -937,10 +937,7 @@ def prompt(message):
def prompt_multi(message, options):
while True:
- # Using print here could result in Python adding a stray space
- # before the next print
- sys.stdout.write(message + " ")
- line = sys.stdin.readline()
+ line = input(f"{message} ")
opt = line[0].lower()
if opt in options:
return opt