mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00
fix flake8
This commit is contained in:
parent
5cd5e18a64
commit
358c79cc86
1 changed files with 2 additions and 2 deletions
|
@ -1457,7 +1457,7 @@ class CommandPipeline:
|
|||
if hasattr(stdout, 'buffer'):
|
||||
stdout = stdout.buffer
|
||||
if stdout is not None and \
|
||||
not isinstance(stdout, (io.BytesIO, NonBlockingFDReader)):
|
||||
not isinstance(stdout, (io.BytesIO, NonBlockingFDReader)):
|
||||
stdout = NonBlockingFDReader(stdout.fileno(), timeout=timeout)
|
||||
if not stdout or not safe_readable(stdout):
|
||||
# we get here if the process is not bacgroundable or the
|
||||
|
@ -1476,7 +1476,7 @@ class CommandPipeline:
|
|||
if hasattr(stderr, 'buffer'):
|
||||
stderr = stderr.buffer
|
||||
if stderr is not None and \
|
||||
not isinstance(stderr, (io.BytesIO, NonBlockingFDReader)):
|
||||
not isinstance(stderr, (io.BytesIO, NonBlockingFDReader)):
|
||||
stderr = NonBlockingFDReader(stderr.fileno(), timeout=timeout)
|
||||
# read from process while it is running
|
||||
check_prev_done = len(self.procs) == 1
|
||||
|
|
Loading…
Add table
Reference in a new issue