def frameify(self, state, data):
        """Yield the data as a single frame."""

        try:
            yield state.recv_buf + data
        except FrameSwitch:
            pass
        finally:
            state.recv_buf = ''
def frameify ( self , state , data ) : try : yield state . recv_buf + data except FrameSwitch : pass finally : state . recv_buf = ''
Yield the data as a single frame.