From ec0bd726c3264d2c341cf81ca9f339834c061107 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 8 Aug 2024 19:57:34 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- xonsh/procs/proxies.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/xonsh/procs/proxies.py b/xonsh/procs/proxies.py index faae0fe2a..365a23320 100644 --- a/xonsh/procs/proxies.py +++ b/xonsh/procs/proxies.py @@ -443,7 +443,11 @@ class ProcProxyThread(threading.Thread): if xt.ON_WINDOWS: open_stdout = open(self.c2pwrite, "wb", -1) else: - open_stdout = open(self.c2pwrite, "wb", -1) if isinstance(self.stdout, int) or self.stdout is None else self.stdout + open_stdout = ( + open(self.c2pwrite, "wb", -1) + if isinstance(self.stdout, int) or self.stdout is None + else self.stdout + ) sp_stdout = io.TextIOWrapper( open_stdout, encoding=enc, @@ -458,7 +462,11 @@ class ProcProxyThread(threading.Thread): if xt.ON_WINDOWS: open_stderr = open(self.errwrite, "wb", -1) else: - open_stderr = open(self.errwrite, "wb", -1) if isinstance(self.stderr, int) or self.stderr is None else self.stderr + open_stderr = ( + open(self.errwrite, "wb", -1) + if isinstance(self.stderr, int) or self.stderr is None + else self.stderr + ) sp_stderr = io.TextIOWrapper( open_stderr, encoding=enc,