Transform the command we pass to subprocess into a byte string in _low_level-exec_command

pull/4420/head
Toshio Kuratomi 2015-12-21 13:52:41 -08:00
parent d22bbbf52c
commit 0c013f592a
1 changed files with 2 additions and 1 deletions

View File

@ -487,7 +487,8 @@ class ActionBase(with_metaclass(ABCMeta, object)):
verbatim, then this won't work. May have to use some sort of verbatim, then this won't work. May have to use some sort of
replacement strategy (python3 could use surrogateescape) replacement strategy (python3 could use surrogateescape)
''' '''
# We may need to revisit this later.
cmd = to_bytes(cmd, errors='strict')
if executable is not None: if executable is not None:
cmd = executable + ' -c ' + cmd cmd = executable + ' -c ' + cmd