fix flake8

This commit is contained in:
Anthony Scopatz 2016-10-20 01:37:16 -04:00
parent 5cd5e18a64
commit 358c79cc86

View file

@ -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