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):
|
||||
"""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
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue