[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): def _is_buffer_binary(self, buffer):
"""Checking that buffer opened as binary stream.""" """Checking that buffer opened as binary stream."""
return ((buf_mode := getattr(buffer, "mode", None)) and "b" in buf_mode) or getattr( return (
buffer, "_std_is_binary", False) (buf_mode := getattr(buffer, "mode", None)) and "b" in buf_mode
) or getattr(buffer, "_std_is_binary", False)
# #
# Properties # Properties