mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 00:14:41 +01:00
Merge remote-tracking branch 'origin/fix_double_open2' into fix_double_open2
This commit is contained in:
commit
ff4a0faf6d
1 changed files with 10 additions and 2 deletions
|
@ -444,7 +444,11 @@ class ProcProxyThread(threading.Thread):
|
|||
# This split was made during solving #5645. We need more eyes to improve this logic for 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,
|
||||
|
@ -460,7 +464,11 @@ class ProcProxyThread(threading.Thread):
|
|||
# This split was made during solving #5645. We need more eyes to improve this logic for 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