code: def _flush_buffered_frames(self):
          '''
          Callback when protocol has been initialized on channel 0 and we're
          ready to send out frames to set up any channels that have been
          created.
          '''
          # In the rare case (a bug) where this is called but send_frame thinks
          # they should be buffered, don't clobber.
          frames = self._output_frame_buffer
          self._output_frame_buffer = []
          for frame in frames:
              self.send_frame(framef _flush_buffered_frames(self):
          '''
          Callback when protocol has been initialized on channel 0 and we're
          ready to send out frames to set up any channels that have been
          created.
          '''
          # In the rare case (a bug) where this is called but send_frame thinks
          # they should be buffered, don't clobber.
          frames = self._output_frame_buffer
          self._output_frame_buffer = []
          for frame in frames:
              self.send_frame(frame)
docs: Callback when protocol has been initialized on channel 0 and we're
          ready to send out frames to set up any channels that have been
          created.