mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-11 09:08:32 +02:00
Fix for writing non-unicode entries on prompt
This commit is contained in:
parent
43f1166ecf
commit
799ff762b2
1 changed files with 2 additions and 2 deletions
|
@ -79,11 +79,11 @@ def prompt(msg):
|
|||
|
||||
def py23_input(msg=""):
|
||||
prompt(msg)
|
||||
return STDIN.readline().strip()
|
||||
return u(STDIN.readline()).strip()
|
||||
|
||||
def py23_read(msg=""):
|
||||
prompt(msg)
|
||||
return STDIN.read()
|
||||
return u(STDIN.read())
|
||||
|
||||
def yesno(prompt, default=True):
|
||||
prompt = prompt.strip() + (" [Y/n]" if default else " [y/N]")
|
||||
|
|
Loading…
Add table
Reference in a new issue