(self, s)
Write string to port.
Write string to port.
Write string to port .
def write(self, s):
        """Write string to port."""
        if self._linefeed:
            s = s.replace(b'\r', b'\r\n')
        with safe_io():
            logging.debug('Writing to serial port %s: %r', self._fhandle.port, s)
            self._fhandle.write(s)
def write ( self , s ) : if self . _linefeed : s = s . replace ( b'\r' , b'\r\n' ) with safe_io ( ) : logging . debug ( 'Writing to serial port %s: %r' , self . _fhandle . port , s ) self . _fhandle . write ( s )