code: def _readline(self, timeout=1):
          
          line = self.port.readline(timeout=timeout)
          return strip_escape(line.strip()) if line is not None else line
docs: Read line from serial port.
  
          :param timeout: timeout, default is 1
          :return: stripped line or None