'Set communication parameters on opened port. For the loop://
protocol all settings are ignored!'

def _reconfigure_port(self):

    if ((not isinstance(self._baudrate, numbers.Integral)) or (not (0 < self._baudrate < (2 ** 32)))):
        raise ValueError('invalid    baudrate:    {!r}'.format(self._baudrate))
    if self.logger:
        self.logger.info('_reconfigure_port()')
