[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-08-09 10:53:30 +00:00
parent 14294ed643
commit c7e31eed77
2 changed files with 4 additions and 3 deletions

View file

@ -653,8 +653,9 @@ class CommandPipeline:
def _is_buffer_binary(self, buffer):
"""Checking that buffer opened as binary stream."""
return ((buf_mode := getattr(buffer, "mode", None)) and "b" in buf_mode) or getattr(
buffer, "_std_is_binary", False)
return (
(buf_mode := getattr(buffer, "mode", None)) and "b" in buf_mode
) or getattr(buffer, "_std_is_binary", False)
#
# Properties

View file

@ -533,7 +533,7 @@ class ProcProxyThread(threading.Thread):
# clean up
# scopz: not sure why this is needed, but stdin cannot go here and stdout & stderr must:
# This split was made during solving #5645. We need more eyes to improve this logic for Windows.
if xt.ON_WINDOWS:
handles = [self.stdout, self.stderr]