diff options
author | Slava Shishkin <slavashishkin@gmail.com> | 2022-04-16 00:07:13 +0300 |
---|---|---|
committer | Slava Shishkin <slavashishkin@gmail.com> | 2022-04-16 00:19:31 +0300 |
commit | f8c5d13e47ceb978d1230708a8c8c8c668e8b332 (patch) | |
tree | 36d6adb06967ae41da53fafe6903c1c3bdd52da5 | |
parent | 85221058291af125df1c8ba3ae00c5676962e5c7 (diff) | |
download | git-bz-f8c5d13e47ceb978d1230708a8c8c8c668e8b332.tar.gz |
upgrade prompt_multi
-rwxr-xr-x | git-bz | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 |