<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _sendMessage(self, msg):
 """ Collapse and send msg to the master """

        if not msg:
            return
        msg = self._collapseMsg(msg)
        self.sendStatus(msg)