Tests: Make self.t('add proj:"with space" foo') work
This commit is contained in:
@@ -172,11 +172,13 @@ class Task(object):
|
|||||||
try:
|
try:
|
||||||
# Python 2.x
|
# Python 2.x
|
||||||
if isinstance(args, basestring):
|
if isinstance(args, basestring):
|
||||||
args = args.split()
|
import shlex
|
||||||
|
args = shlex.split(args)
|
||||||
except NameError:
|
except NameError:
|
||||||
# Python 3.x
|
# Python 3.x
|
||||||
if isinstance(args, str):
|
if isinstance(args, str):
|
||||||
args = args.split()
|
import shlex
|
||||||
|
args = shlex.split(args)
|
||||||
|
|
||||||
command.extend(args)
|
command.extend(args)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user