mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
parent
fb629266e6
commit
de6f4b2823
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ def set_keychain(journal_name, password):
|
|||
|
||||
def u(s):
|
||||
"""Mock unicode function for python 2 and 3 compatibility."""
|
||||
return s if PY3 or type(s) is unicode else unicode(s, "unicode_escape")
|
||||
return s if PY3 or type(s) is unicode else unicode(s.encode('string-escape'), "unicode_escape")
|
||||
|
||||
def prompt(msg):
|
||||
"""Prints a message to the std err stream defined in util."""
|
||||
|
|
Loading…
Add table
Reference in a new issue