def _parse_cmd_string(self, cmd_string):
lex = shlex.shlex(cmd_string, posix=True)
lex.whitespace_split = True
lex.commenters = ''
lex.wordchars += '.'
try:
return list(lex)
except ValueError:
podutils.raise_('Incorrect cmd string')
评论列表
文章目录