mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-11 01:41:57 -04:00
linter
This commit is contained in:
parent
fcc5a5beff
commit
1f76b6a21e
2 changed files with 14 additions and 2 deletions
|
|
@ -277,7 +277,13 @@ class LegacyRemoteRepository:
|
|||
logger.debug("SSH command line: %s", borg_cmd)
|
||||
# we do not want the ssh getting killed by Ctrl-C/SIGINT because it is needed for clean shutdown of borg.
|
||||
self.p = Popen(
|
||||
borg_cmd, bufsize=0, stdin=PIPE, stdout=PIPE, stderr=PIPE, env=env, preexec_fn=None if is_win32 else ignore_sigint
|
||||
borg_cmd,
|
||||
bufsize=0,
|
||||
stdin=PIPE,
|
||||
stdout=PIPE,
|
||||
stderr=PIPE,
|
||||
env=env,
|
||||
preexec_fn=None if is_win32 else ignore_sigint,
|
||||
) # nosec B603
|
||||
self.stdin_fd = self.p.stdin.fileno()
|
||||
self.stdout_fd = self.p.stdout.fileno()
|
||||
|
|
|
|||
|
|
@ -578,7 +578,13 @@ class RemoteRepository:
|
|||
logger.debug("SSH command line: %s", borg_cmd)
|
||||
# we do not want the ssh getting killed by Ctrl-C/SIGINT because it is needed for clean shutdown of borg.
|
||||
self.p = Popen(
|
||||
borg_cmd, bufsize=0, stdin=PIPE, stdout=PIPE, stderr=PIPE, env=env, preexec_fn=None if is_win32 else ignore_sigint
|
||||
borg_cmd,
|
||||
bufsize=0,
|
||||
stdin=PIPE,
|
||||
stdout=PIPE,
|
||||
stderr=PIPE,
|
||||
env=env,
|
||||
preexec_fn=None if is_win32 else ignore_sigint,
|
||||
) # nosec B603
|
||||
self.stdin_fd = self.p.stdin.fileno()
|
||||
self.stdout_fd = self.p.stdout.fileno()
|
||||
|
|
|
|||
Loading…
Reference in a new issue