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
14294ed643
commit
c7e31eed77
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue