mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 21:18:32 +02:00
fixup! remove py2 remnants and use mocks in tests
This commit is contained in:
parent
827a598dd8
commit
7d9795ace6
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ def set_keychain(journal_name, password):
|
||||||
|
|
||||||
|
|
||||||
def yesno(prompt, default=True):
|
def yesno(prompt, default=True):
|
||||||
prompt = f"{prompt.strip()} {'[Y/n]' if default else '[y/N]'}"
|
prompt = f"{prompt.strip()} {'[Y/n]' if default else '[y/N]'} "
|
||||||
response = input(prompt)
|
response = input(prompt)
|
||||||
return {"y": True, "n": False}.get(response.lower(), default)
|
return {"y": True, "n": False}.get(response.lower(), default)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue