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
925da0e155
commit
ec0bd726c3
1 changed files with 10 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue