local connection always passes str to Popen (#85239)

(cherry picked from commit 0ee1c36779)
pull/85255/head
Matt Davis 6 months ago committed by Matt Davis
parent d63f9aa38d
commit 7b99b0144d

@ -0,0 +1,2 @@
bugfixes:
- local connection plugin - The command-line used to create subprocesses is now always ``str`` to avoid issues with debuggers and profilers.

@ -101,9 +101,9 @@ class Connection(ConnectionBase):
display.debug("opening command with Popen()")
if isinstance(cmd, (text_type, binary_type)):
cmd = to_bytes(cmd)
cmd = to_text(cmd)
else:
cmd = map(to_bytes, cmd)
cmd = map(to_text, cmd)
pty_primary = None
stdin = subprocess.PIPE

Loading…
Cancel
Save