Skip to content

Commit ab5e927

Browse files
authored
lint: remove extraneous logic for preexec_func (#2920)
`preexec_func` is still None if it is win32 Signed-off-by: q0w <[email protected]>
1 parent b7daa52 commit ab5e927

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/transport/sshconn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def f():
6262
env=env,
6363
stdout=subprocess.PIPE,
6464
stdin=subprocess.PIPE,
65-
preexec_fn=None if constants.IS_WINDOWS_PLATFORM else preexec_func)
65+
preexec_fn=preexec_func)
6666

6767
def _write(self, data):
6868
if not self.proc or self.proc.stdin.closed:

0 commit comments

Comments
 (0)