Skip to content

Commit

Permalink
lint: remove extraneous logic for preexec_func (#2920)
Browse files Browse the repository at this point in the history
`preexec_func` is still None if it is win32

Signed-off-by: q0w <43147888+q0w@users.noreply.github.com>
  • Loading branch information
q0w committed Aug 2, 2022
1 parent b7daa52 commit ab5e927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/transport/sshconn.py
Expand Up @@ -62,7 +62,7 @@ def f():
env=env,
stdout=subprocess.PIPE,
stdin=subprocess.PIPE,
preexec_fn=None if constants.IS_WINDOWS_PLATFORM else preexec_func)
preexec_fn=preexec_func)

def _write(self, data):
if not self.proc or self.proc.stdin.closed:
Expand Down

0 comments on commit ab5e927

Please sign in to comment.