def write(self, data):

        if not data:
            return None

        self.buffer += data
        self.do_write()

        return len(data)
Write `data` to the Stream. Not all data may be written right away.
dataset/ETHPy150Open d11wtq/dockerpty/dockerpty/io.py/Stream.write