[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-07-29 18:31:07 +00:00
parent a5296f8457
commit d5e36483b2

View file

@ -441,9 +441,10 @@ class ProcProxyThread(threading.Thread):
# stdout # stdout
if self.c2pwrite != -1: if self.c2pwrite != -1:
sp_stdout = io.TextIOWrapper( sp_stdout = io.TextIOWrapper(
self.stdout self.stdout,
# open(self.c2pwrite, "wb", -1) # open(self.c2pwrite, "wb", -1)
, encoding=enc, errors=err encoding=enc,
errors=err,
) )
else: else:
sp_stdout = sys.stdout sp_stdout = sys.stdout
@ -452,9 +453,10 @@ class ProcProxyThread(threading.Thread):
sp_stderr = sp_stdout sp_stderr = sp_stdout
elif self.errwrite != -1: elif self.errwrite != -1:
sp_stderr = io.TextIOWrapper( sp_stderr = io.TextIOWrapper(
self.stderr self.stderr,
# open(self.errwrite, "wb", -1) # open(self.errwrite, "wb", -1)
, encoding=enc, errors=err encoding=enc,
errors=err,
) )
else: else:
sp_stderr = sys.stderr sp_stderr = sys.stderr