Tests: Make self.t('add proj:"with space" foo') work

This commit is contained in:
Wilhelm Schuermann 2015-05-08 18:19:37 +02:00
parent e16bd6ee83
commit 65b6a35ef5

View file

@ -172,11 +172,13 @@ class Task(object):
try:
# Python 2.x
if isinstance(args, basestring):
args = args.split()
import shlex
args = shlex.split(args)
except NameError:
# Python 3.x
if isinstance(args, str):
args = args.split()
import shlex
args = shlex.split(args)
command.extend(args)