mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 00:14:41 +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
a5296f8457
commit
d5e36483b2
1 changed files with 6 additions and 4 deletions
|
@ -441,9 +441,10 @@ class ProcProxyThread(threading.Thread):
|
|||
# stdout
|
||||
if self.c2pwrite != -1:
|
||||
sp_stdout = io.TextIOWrapper(
|
||||
self.stdout
|
||||
self.stdout,
|
||||
# open(self.c2pwrite, "wb", -1)
|
||||
, encoding=enc, errors=err
|
||||
encoding=enc,
|
||||
errors=err,
|
||||
)
|
||||
else:
|
||||
sp_stdout = sys.stdout
|
||||
|
@ -452,9 +453,10 @@ class ProcProxyThread(threading.Thread):
|
|||
sp_stderr = sp_stdout
|
||||
elif self.errwrite != -1:
|
||||
sp_stderr = io.TextIOWrapper(
|
||||
self.stderr
|
||||
self.stderr,
|
||||
# open(self.errwrite, "wb", -1)
|
||||
, encoding=enc, errors=err
|
||||
encoding=enc,
|
||||
errors=err,
|
||||
)
|
||||
else:
|
||||
sp_stderr = sys.stderr
|
||||
|
|
Loading…
Add table
Reference in a new issue