def _sendline(self, line):
        """Send exactly one line to the device

        Args:
            line str: data send to device
        """
        self.lines = []
        try:
            self._read()
        except socket.error:
            logging.debug('Nothing cleared')

        logger.debug('sending [%s]', line)
        self._write(line + '\r\n')

        # wait for write to complete
        time.sleep(0.5)
def _sendline ( self , line ) : self . lines = [ ] try : self . _read ( ) except socket . error : logging . debug ( 'Nothing cleared' ) logger . debug ( 'sending [%s]' , line ) self . _write ( line + '\r\n' ) time . sleep ( 0.5 )
Send exactly one line to the device

        Args:
            line str: data send to device