Skip to content
Snippets Groups Projects
Commit d7c678c3 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

RF: prepareArgs should use shlex

parent 8c3371d2
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@
import sys
import shlex
import logging
import threading
import contextlib
......@@ -81,7 +82,7 @@ def prepareArgs(args):
# Argument was a command string
if isinstance(args[0], six.string_types):
args = args[0].split()
args = shlex.split(args[0])
# Argument was an unpacked sequence
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment