local connection always passes str to Popen (#85239)

pull/85242/head
Matt Davis 6 months ago committed by GitHub
parent 2a24633964
commit 0ee1c36779
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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