parameters: (self, timeout)
docstring: Change timeout setting.
docstring_summary: Change timeout setting.
docstring_tokens: Change timeout setting .
function: def write_timeout(self, timeout):
          """Change timeout setting."""
          if timeout is not None:
              if timeout < 0:
                  raise ValueError("Not a valid timeout: {!r}".format(timeout))
              try:
                  timeout + 1     # test if it's a number, will throw a TypeError if not...
              except TypeError:
                  raise ValueError("Not a valid timeout: {!r}".format(timeout))
  
          self._write_timeout = timeout
          if self.is_open:
              self._reconfigure_port()
function_tokens: def write_timeout ( self , timeout ) : if timeout is not None : if timeout < 0 : raise ValueError ( "Not a valid timeout: {!r}" . format ( timeout ) ) try : timeout + 1 # test if it's a number, will throw a TypeError if not... except TypeError : raise ValueError ( "Not a valid timeout: {!r}" . format ( timeout ) ) self . _write_timeout = timeout if self . is_open : self . _reconfigure_port ( )