X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/516b8d6c03058552cfe7c3bfda4362640a3077e1..6d62b489838f0bb48bf17b276349b1e25c1d4f52:/tasklib/backends.py?ds=sidebyside diff --git a/tasklib/backends.py b/tasklib/backends.py index 4b0c6df..e6daace 100644 --- a/tasklib/backends.py +++ b/tasklib/backends.py @@ -132,7 +132,10 @@ class TaskWarrior(Backend): overrides.update(config_override or dict()) for item in overrides.items(): command_args.append('rc.{0}={1}'.format(*item)) - command_args.extend([x.decode('utf-8') for x in args]) + command_args.extend([ + x.decode('utf-8') if isinstance(x, six.binary_type) + else six.text_type(x) for x in args + ]) return command_args def _get_version(self):