updated utility split args method to work with both str/unicode types
This commit is contained in:
parent
ae2c0aa697
commit
0c840f553d
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ def split_args(args):
|
|||
:return: shell-like syntax list
|
||||
:rtype: list
|
||||
"""
|
||||
if type(args) == str:
|
||||
if isinstance(args, basestring):
|
||||
args = shlex.split(args)
|
||||
return args
|
||||
|
||||
|
|
Loading…
Reference in a new issue