def is_done(self):

        return (not self.wait_for_output or self.eof) and \
                not (hasattr(self.to_stream, 'needs_write') and self.to_stream.needs_write())
Reads a single data frame from the stream and returns it.
dataset/ETHPy150Open d11wtq/dockerpty/dockerpty/io.py/Pump.is_done--crossover with--dataset/ETHPy150Open Lukasa/hyper/hyper/http20/stream.py/Stream._read_one_frame