mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 09:53:08 +02:00
Tests: Make self.t('add proj:"with space" foo') work
This commit is contained in:
parent
e16bd6ee83
commit
65b6a35ef5
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue