[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-06-22 20:09:08 +00:00
parent 8f9d9bff9f
commit 099ff8d514

View file

@ -1026,7 +1026,9 @@ def cmds_to_specs(cmds, captured=False, envs=None):
last = spec
is_redirected_stdout = bool(last.stdout)
specs_to_capture = (
specs if captured in STDOUT_CAPTURE_KINDS or is_redirected_stdout else specs[:-1]
specs
if captured in STDOUT_CAPTURE_KINDS or is_redirected_stdout
else specs[:-1]
)
_set_specs_capture_always(specs_to_capture)