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))