

def _prepare_for_sending(self, frames):
    if (not frames):
        return
    self._data_to_send += b''.join((f.serialize() for f in frames))
    assert all(((f.body_len <= self.max_outbound_frame_size) for f in frames))

dataset/ETHPy150Open python-hyper/hyper-h2/h2/connection.py H2Connection._prepare_for_sending/original