From 36ce1fe3a83148b4d9e7550f505ab4525d4249cb Mon Sep 17 00:00:00 2001 From: Manuel Ebert Date: Fri, 28 Mar 2014 14:40:58 -0700 Subject: [PATCH] Don't decode unicode --- jrnl/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jrnl/cli.py b/jrnl/cli.py index 037771db..5830aebf 100644 --- a/jrnl/cli.py +++ b/jrnl/cli.py @@ -110,7 +110,7 @@ def update_config(config, new_config, scope, force_local=False): def run(manual_args=None): 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: version_str = "{0} version {1}".format(jrnl.__title__, jrnl.__version__) print(util.py2encode(version_str))