mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
8f9d9bff9f
commit
099ff8d514
1 changed files with 3 additions and 1 deletions
|
@ -1026,7 +1026,9 @@ def cmds_to_specs(cmds, captured=False, envs=None):
|
||||||
last = spec
|
last = spec
|
||||||
is_redirected_stdout = bool(last.stdout)
|
is_redirected_stdout = bool(last.stdout)
|
||||||
specs_to_capture = (
|
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)
|
_set_specs_capture_always(specs_to_capture)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue