def _non_connect_send_msg(self, msg_code, data):
        """
        Similar to self._send, but doesn't try to initiate a connection,
        thus preventing an infinite loop.
        """
        try:
            self._socket.sendall(self._encode_msg(msg_code, data))
        except (IOError, socket.error) as e:
            if e.errno == errno.EPIPE:
                raise ConnectionClosed(e)
            else:
                raise
def _non_connect_send_msg ( self , msg_code , data ) : try : self . _socket . sendall ( self . _encode_msg ( msg_code , data ) ) except ( IOError , socket . error ) as e : if e . errno == errno . EPIPE : raise ConnectionClosed ( e ) else : raise
Similar to self._send, but doesn't try to initiate a connection,
        thus preventing an infinite loop.