mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Don't decode unicode
This commit is contained in:
parent
14d249c3c9
commit
36ce1fe3a8
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ def update_config(config, new_config, scope, force_local=False):
|
||||||
|
|
||||||
def run(manual_args=None):
|
def run(manual_args=None):
|
||||||
args = parse_args(manual_args)
|
args = parse_args(manual_args)
|
||||||
args.text = map(lambda p: p.decode('utf-8'), args.text)
|
args.text = [p.decode('utf-8') if util.PY2 and not isinstance(p, unicode) else p for p in args.text]
|
||||||
if args.version:
|
if args.version:
|
||||||
version_str = "{0} version {1}".format(jrnl.__title__, jrnl.__version__)
|
version_str = "{0} version {1}".format(jrnl.__title__, jrnl.__version__)
|
||||||
print(util.py2encode(version_str))
|
print(util.py2encode(version_str))
|
||||||
|
|
Loading…
Add table
Reference in a new issue