diff --git a/xonsh/procs/pipelines.py b/xonsh/procs/pipelines.py index 333aa7cc5..a31585679 100644 --- a/xonsh/procs/pipelines.py +++ b/xonsh/procs/pipelines.py @@ -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 diff --git a/xonsh/procs/proxies.py b/xonsh/procs/proxies.py index b503960e3..3eb65133e 100644 --- a/xonsh/procs/proxies.py +++ b/xonsh/procs/proxies.py @@ -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]