def write(self, b): """ Writes data to stdout as bytes. :param b: data to write """ bytes_print(b, self._stdout)
def _handle_stream_task(self, data): fileobj = sys.stdout bytes_print(data) fileobj.flush()