typo
This commit is contained in:
parent
229134cf31
commit
e6839b45e3
@ -108,7 +108,7 @@ def yesno(cli_opts: AskCLIOptions, items: List[str]) -> Response:
|
|||||||
tty.setraw(sys.stdin.fileno())
|
tty.setraw(sys.stdin.fileno())
|
||||||
try:
|
try:
|
||||||
response = sys.stdin.buffer.read(1)
|
response = sys.stdin.buffer.read(1)
|
||||||
yes = response in (b'y', b'Y', b'\r', b'\n' b' ')
|
yes = response in (b'y', b'Y', b'\r', b'\n', b' ')
|
||||||
return {'items': items, 'response': 'y' if yes else 'n'}
|
return {'items': items, 'response': 'y' if yes else 'n'}
|
||||||
finally:
|
finally:
|
||||||
sys.stdout.write(set_cursor_visible(True))
|
sys.stdout.write(set_cursor_visible(True))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user